<?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: Custom Geoprocessing tool crashes in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/custom-geoprocessing-tool-crashes/m-p/739324#M19622</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: dougjc&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've managed to figure this out with a bit of trial and error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Its all down to the ArcGIS debugging tools available in the JavaConfigTool. In particular the "Create Console" option, with my setup when I have this checked and I try and run any custom geoprocessing tool (even something straight out of the wizard) the whole thing crashes. But once you disable it the geoprocessing tool runs fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Going to try and raise this as a defect with ESRI.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Sep 2013 09:56:49 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2013-09-20T09:56:49Z</dc:date>
    <item>
      <title>Custom Geoprocessing tool crashes</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/custom-geoprocessing-tool-crashes/m-p/739323#M19621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: dougjc&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to create a custom geoprocessing tool using the Java API in Eclipse, and I'm having a few difficulties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My tool kept crashing, so I did some debugging and it never even hits the execute method, it crashes just after calling getDisplayName() but as I dont have the Arc source I cant see exactly whats going on. It looks like a String.toString() call on the result of the getDisplayName() method is the culprit. Which seems a bit of an odd place to break.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To confirm it wasnt anything obvious I'd done wrong I ran the wizard to create a new geoprocessing tool, and exported that without any changes to the generated code. It still crashes, which is why I'm now posting here because I cant figure it out at all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To reproduce, I've attached the generated files and a jar of them (you will need to do some renaming). Either generate your own jar or copy to mine to somewhere like: C:\Program Files\ArcGIS\Desktop10.1\java\lib\ext&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then add TestTool from FunctionFactory1 into a toolbox and try and run it. For me it crashes with an ESRI error report dialog. I'm using ArcMap 10.1 and eclipse Helios SR2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Doug&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 12:29:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/custom-geoprocessing-tool-crashes/m-p/739323#M19621</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-09-06T12:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Geoprocessing tool crashes</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/custom-geoprocessing-tool-crashes/m-p/739324#M19622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: dougjc&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've managed to figure this out with a bit of trial and error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Its all down to the ArcGIS debugging tools available in the JavaConfigTool. In particular the "Create Console" option, with my setup when I have this checked and I try and run any custom geoprocessing tool (even something straight out of the wizard) the whole thing crashes. But once you disable it the geoprocessing tool runs fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Going to try and raise this as a defect with ESRI.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 09:56:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/custom-geoprocessing-tool-crashes/m-p/739324#M19622</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-09-20T09:56:49Z</dc:date>
    </item>
  </channel>
</rss>

