<?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 Pure Python COM objects cause Beta 2 crash in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/pure-python-com-objects-cause-beta-2-crash/m-p/477872#M16021</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Awesome, good to hear.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Apr 2010 20:13:08 GMT</pubDate>
    <dc:creator>JasonScheirer</dc:creator>
    <dc:date>2010-04-08T20:13:08Z</dc:date>
    <item>
      <title>Pure Python COM objects cause Beta 2 crash</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/pure-python-com-objects-cause-beta-2-crash/m-p/477868#M16017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Pure Python COM objects work just fine in ArcGIS 9.3.1, but in Beta 2 they cause ArcMap and ArcCatalog to crash on closing.&amp;nbsp; Here's a simple test:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Create a simple COM object using the instructions at:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://starship.python.net/crew/theller/comtypes/server.html"&gt;http://starship.python.net/crew/theller/comtypes/server.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Open ArcMap or ArcCatalog and type the following in the Python window:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from comtypes.client import CreateObject&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;o = CreateObject("MyTypeLib.MyObject")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Close ArcMap or ArcCatalog&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;4) Boom! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2010 13:55:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/pure-python-com-objects-cause-beta-2-crash/m-p/477868#M16017</guid>
      <dc:creator>MarkCederholm</dc:creator>
      <dc:date>2010-02-12T13:55:29Z</dc:date>
    </item>
    <item>
      <title>Pure Python COM objects cause Beta 2 crash</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/pure-python-com-objects-cause-beta-2-crash/m-p/477869#M16018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Looks like a double free on the COM object when ArcMap/Catalog closes down the Python interpreter for that process. Are there any known issues in COMTypes itself? Is there an explicit addref call you need to execute on the object when you start using it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We don't link against a debug build of Python in the ArcObjects stack, so I can't dig too much further into the Python to see what's going on here. Sorry.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2010 22:36:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/pure-python-com-objects-cause-beta-2-crash/m-p/477869#M16018</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2010-02-12T22:36:09Z</dc:date>
    </item>
    <item>
      <title>Pure Python COM objects cause Beta 2 crash</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/pure-python-com-objects-cause-beta-2-crash/m-p/477870#M16019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;CreateObject automatically adds a ref, just as del automatically removes it.&amp;nbsp; Even after the object is supposedly freed, the bomb still occurs.&amp;nbsp; I tried adding an extra ref and that did no good.&amp;nbsp; I know of no current issues with comypes but I'll do some looking; no bombs occur when the object is used in a normal Python session.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2010 12:32:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/pure-python-com-objects-cause-beta-2-crash/m-p/477870#M16019</guid>
      <dc:creator>MarkCederholm</dc:creator>
      <dc:date>2010-02-15T12:32:10Z</dc:date>
    </item>
    <item>
      <title>Pure Python COM objects cause Beta 2 crash</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/pure-python-com-objects-cause-beta-2-crash/m-p/477871#M16020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Looks like it's fixed in the RC!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Apr 2010 16:05:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/pure-python-com-objects-cause-beta-2-crash/m-p/477871#M16020</guid>
      <dc:creator>MarkCederholm</dc:creator>
      <dc:date>2010-04-08T16:05:35Z</dc:date>
    </item>
    <item>
      <title>Pure Python COM objects cause Beta 2 crash</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/pure-python-com-objects-cause-beta-2-crash/m-p/477872#M16021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Awesome, good to hear.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Apr 2010 20:13:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/pure-python-com-objects-cause-beta-2-crash/m-p/477872#M16021</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2010-04-08T20:13:08Z</dc:date>
    </item>
  </channel>
</rss>

