PDA

View Full Version : Error: Mappoint 2009 stopped working



rowter
09-11-2009, 11: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
MPC.CloseMap()
End If
Me.Close()
End Sub


Thanks in advance

Wilfried
09-17-2009, 08:43 AM
Hi,

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()