I have a custom GP function in ArcGIS 10 written in C#. When the tool is run it takes ArcGIS about 5 minutes to close (as in the application closes but in Task manager ArcMap.exe and ArcSOCP.exe are still running). When closed ArcMap.exe will increase memory too about 170 - 250 MB.
To ensure it wasn't my code I created a blank GP Function with no code in the Execute function and return and empty paramarray value. Ran the tool and ArcMap still took ages too close.
I then opened ArcMap again and launched the tool but this time pressed cancel instead of go. ArcMap closed fine.
So as soon the tool enters the execute method it seems to then take ages to close when the Execute method finishes.
If I run one of the out of the box GP tools ArcMap closes fine.
Anyone encountered the same problem?
