<?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 Memory Corruption error&amp;nbsp; of ArcObjects in multithreading environment in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/memory-corruption-error-nbsp-of-arcobjects-in/m-p/214394#M5552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In our program, we are trying to indentify differences between two different versions of Geodatabases&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Inorder to increase the performance, we are trying to run Arcobjects in a multithreaded environment. We have created IWorkspaceFactory per thread &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are facing below mentioned error &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The thread 'Win32 Thread' (0x2058) has exited with code 0 (0x0).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;HEAP[KernUpdater.exe]: Heap block at 1C6D87B8 modified at 1C6D899C past requested size of 1dc&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Windows has triggered a breakpoint in KernUpdater.exe.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Even though this error is random, it generally occurs when we are trying to do a &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ITable.opentable or ITable.search or differenceCursor.next functions &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This error crops up when these functions are invoked by different threads at the same time. We have ensured that the workspaces instances are not shared across threads, even though they are connecting to the same databases.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can any one please help?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Jul 2010 14:52:08 GMT</pubDate>
    <dc:creator>AnilDhiman</dc:creator>
    <dc:date>2010-07-21T14:52:08Z</dc:date>
    <item>
      <title>Memory Corruption error  of ArcObjects in multithreading environment</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/memory-corruption-error-nbsp-of-arcobjects-in/m-p/214394#M5552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In our program, we are trying to indentify differences between two different versions of Geodatabases&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Inorder to increase the performance, we are trying to run Arcobjects in a multithreaded environment. We have created IWorkspaceFactory per thread &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are facing below mentioned error &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The thread 'Win32 Thread' (0x2058) has exited with code 0 (0x0).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;HEAP[KernUpdater.exe]: Heap block at 1C6D87B8 modified at 1C6D899C past requested size of 1dc&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Windows has triggered a breakpoint in KernUpdater.exe.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Even though this error is random, it generally occurs when we are trying to do a &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ITable.opentable or ITable.search or differenceCursor.next functions &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This error crops up when these functions are invoked by different threads at the same time. We have ensured that the workspaces instances are not shared across threads, even though they are connecting to the same databases.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can any one please help?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 14:52:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/memory-corruption-error-nbsp-of-arcobjects-in/m-p/214394#M5552</guid>
      <dc:creator>AnilDhiman</dc:creator>
      <dc:date>2010-07-21T14:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Corruption error  of ArcObjects in multithreading environment</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/memory-corruption-error-nbsp-of-arcobjects-in/m-p/214395#M5553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try following the pattern in the raster subset example, but instead of creating a thread for each raster band, create a thread for each table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisengine/dotnet/ViewCodePages/a520994c-1b3b-4036-a2ca-89dc76333a16SubsetRasterTool.cs.htm"&gt;http://resources.esri.com/help/9.3/arcgisengine/dotnet/ViewCodePages/a520994c-1b3b-4036-a2ca-89dc76333a16SubsetRasterTool.cs.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 15:25:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/memory-corruption-error-nbsp-of-arcobjects-in/m-p/214395#M5553</guid>
      <dc:creator>KirkKuykendall</dc:creator>
      <dc:date>2010-07-21T15:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Corruption error  of ArcObjects in multithreading environment</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/memory-corruption-error-nbsp-of-arcobjects-in/m-p/214396#M5554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the quick response&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We may get functional errors if we create one thread per table.&amp;nbsp; In our application we are serializing the propertyset and then creating workspace at the thread level, but since the connection parameters are same for the threads, the same reference of workspace would be used...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I read this from ESRI documentation&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Workspaces are not singleton objects, but requesting a workspace with the same properties as an existing instance returns a reference to it (referred to as unique instancing)."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is the shared workspace causing access violation exception?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 15:59:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/memory-corruption-error-nbsp-of-arcobjects-in/m-p/214396#M5554</guid>
      <dc:creator>AnilDhiman</dc:creator>
      <dc:date>2010-07-21T15:59:30Z</dc:date>
    </item>
  </channel>
</rss>

