I am using MapPoint Control in another Ac....

Anonymous
11-23-2001, 08:29 AM
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
End Sub

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!

Desmond

Anonymous
11-23-2001, 08:29 AM
I think you're running into issues that are specific to using the ActiveX Control inside Internet Explorer. Microsoft doesn't support the OCX in this environment, so you're probably out of luck.

 
Web mp2kmag.com
mapforums.com