I am using MapPoint Control in another ActiveX control, which is loaded
by a web page.
The following is the Terminate() method in the ActiveX, hoping to help it better
unload the Mappoint Control, since I don't know how to signal it to unload
Private Sub UserControl_Terminate()
oMap.Saved = True
Set oMap = Nothing
However, if I close IE instead of go to another page, the Mappoint
Control may be failed to unload itself. On Windows2000, this will leave an
orphan MapPoint process running there forever, and on Window 98, it simply crush
the OS. But if I move to another page, close browser after, say, 3 minutes,
everything will be fine.
So I guess it's because Mappoint needs time to unload but the container did wait.
So, how to unload MappointControl explicitly? and how do I know if it
is unloaded successfully, so I can kill myself safely ?
Thanks a lot!