castormalin

arcmap.exe still runs or crashes when is closed

Discussion created by castormalin on Jan 13, 2012
Hello,

I'm developing a plug-in for arcmap. It runs fine on win xp but on vista (32 and 64), when I close arcmap, sometimes arcmap.exe still runs, sometimes, I have an error window "ArcGis Desktop has encountered a serious application error and is unable to continue". My plug-in is written in C++ and uses COM.

I have read some posts about the arcmap.exe still running issue, but nothing about the crashes. My problem seems to occur if a COM object is created. I tried to use all the combinations between CreateInstance and CoCreateInstance for object creation and DeleteObject and Release() for object destruction, nothing works. Have I forgotten something to have my plug-in works under vista ?

thanks,

Outcomes