View Full Version : Error: Mappoint 2009 stopped working

09-11-2009, 10:01 AM
Hi ,

I work on a winform application.

I have this code to close the map and i call it from the application before closing the application
Mappoint crashes each time after closing the application.
I get this message:

Microsoft mappoint 2009 has stopped working.
A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available.

Is this code ok? Why is not closing out properly. I am hiding the map befoe closing. Is that causing this error?

Public Sub closeMap()
If (Not MPC.ActiveMap Is Nothing) Then
End If
End Sub

Thanks in advance

09-17-2009, 07:43 AM

You say the the error comes after closing the application. So this means that MPC.CloseMap() does nothing? No error if you step with the debugger trought this code?

Try MPC.Quit()