Community of MapPoint and Virtual Earth Users and Developers
This is a discussion on Regarding COM exception at the end of execution... within the MP2K Magazine Articles forums, part of the Map Forums category; My response is related with COM exception ( 0xC0000005 ) at the end of execution MapPoint test application described in ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Regarding COM exception at the end of execution... Unhandled exception 0xC0000005 "Access Violation" happens because: - all your COM objects were released after g_pMapPoint->Quit() was executed; - but, pointers to COM objects you worked with are still NOT NULL. You can fix it in a very simple way: ... myMapPtr->Saved = true; try { if( g_pMapPoint != NULL ) { g_pMapPoint->Quit(); } } catch( ... ){} resultsPtr = NULL; locAddressPtr = NULL; pinAddressPtr = NULL; myMapPtr = NULL; g_pMapPoint = NULL; CoUninitialize(); } I tested it and everything is fine now. Best regards, Sergey |
![]() |
| Tags |
| end, exception, execution |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Unknown Host Exception | amitsh | MapPoint 2006/2009 Discussion | 3 | 12-19-2008 12:39 AM |
| MP 2004 + VS2005 COM exception | NoDed | MapPoint 2006/2009 Discussion | 1 | 02-28-2006 02:06 PM |
| OutOfMemory Exception | Gianmaria | MapPoint 2006/2009 Discussion | 1 | 01-24-2006 12:26 PM |
| Error "overflow execution stack" while readinq a | Anonymous | MapPoint 2006/2009 Discussion | 5 | 02-18-2005 01:47 PM |
| Recordset exception. What am I doing wrong? | Anonymous | MapPoint 2006/2009 Discussion | 3 | 01-25-2005 02:26 PM |
Larnaca Holiday
Take a Larnaca holiday through UlookUbook and enjoy beautiful seaside resorts and sandy beaches.