<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CameraService.DefaultCamera.GetCurrentImage() falls over in ArcGIS for Windows Mobile Questions</title>
    <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/cameraservice-defaultcamera-getcurrentimage-falls/m-p/487906#M2012</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What are the specs of the device you are using?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 May 2013 16:02:30 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2013-05-29T16:02:30Z</dc:date>
    <item>
      <title>CameraService.DefaultCamera.GetCurrentImage() falls over</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/cameraservice-defaultcamera-getcurrentimage-falls/m-p/487905#M2011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having a little problem with a custom camera page I am having to develop in ArcGIS for Windows Mobile. The reason for custom camera page is, out of the box ArcGIS for Windows Mobile 10.1.1 does not provide user with option to chage camera resolution settings.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the code I am using following lines;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI.ArcGIS.Mobile.Client.WebCam.CameraService.DefaultCamera.CaptureHeight = 768;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI.ArcGIS.Mobile.Client.WebCam.CameraService.DefaultCamera.CaptureWidth = 1024;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;System.Drawing.Bitmap image = ESRI.ArcGIS.Mobile.Client.WebCam.CameraService.DefaultCamera.GetCurrentImage();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;image.Save(System.IO.Path.GetTempFileName(), image.RawFormat);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, the code above falls over with MemoryAccessViolation, a very low level error. Even Try Catch does not seem to capture it. In debug mode, error sometimes happens at GetCurrentImage, sometimes at image.Save and sometimes after.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried all sorts of things, such as cloning Bitmap, saving it MemoryStream first and then saving to FileStream, adding Thread.Sleep, boxing the disposable objects with "using" etc. But one of the calls that involve Bitmap or Stream objects, falls over with AccessViolation. Any idea why this is happening.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Out of the box Camera button works fine and I can see JPG created in %TEMP% folder as well as attachment added. Just they are very low resolution images.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is much appreciated. My project goes live in two weeks time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vish&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS: Someone else had started a similar thread but no answer was provided.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 04:02:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/cameraservice-defaultcamera-getcurrentimage-falls/m-p/487905#M2011</guid>
      <dc:creator>VishApte</dc:creator>
      <dc:date>2013-05-15T04:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: CameraService.DefaultCamera.GetCurrentImage() falls over</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/cameraservice-defaultcamera-getcurrentimage-falls/m-p/487906#M2012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What are the specs of the device you are using?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 16:02:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/cameraservice-defaultcamera-getcurrentimage-falls/m-p/487906#M2012</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-05-29T16:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: CameraService.DefaultCamera.GetCurrentImage() falls over</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/cameraservice-defaultcamera-getcurrentimage-falls/m-p/487907#M2013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What are the specs of the device you are using?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Client is using HP Elitepad 900 model with Windows 8. The device has inbuilt 8mp camera with flash. HP's camera metro app can take brilliant photos, ArcGIS Mobile is stuck at 640x480 without flash. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vish&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2013 05:31:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/cameraservice-defaultcamera-getcurrentimage-falls/m-p/487907#M2013</guid>
      <dc:creator>VishApte</dc:creator>
      <dc:date>2013-06-12T05:31:14Z</dc:date>
    </item>
  </channel>
</rss>

