We have a desktop application that uses ArcGIS 10 and we are ending up with application crash after closing the application by running the OD cost matrix.
We do a clean up of the member variables after running OD Cost matrix.
We are having one variable of type INetworkDataSetPtr for opening the data set and if we comment out the release method for this pointer, the crash goes away.
This worked well with ArcGIS 9.3. Recently we upgraded to ArcGIS 10 and our dev environment has been upgraded to Visual Studio 2010 (earlier we used VC++ 6.0) .
Faulting application trur.exe, version 188.8.131.52, time stamp 0x50ac6bea, faulting module MSVCR100.dll, version 10.0.30319.1, time stamp 0x4ba1dbbe, exception code 0x40000015, fault offset 0x0008d635, process id 0xbc8, application start time 0x01cdc7af2de12b8d.