CloseMap is slow

gflynn
10-10-2007, 01:15 PM
I am using MapPoint 2006 and when I call CloseMap it takes 4 to 12 seconds. I have heard on this forum that it was a known problem and that there was no patch at that time. Have things changed? Is there a solution to this problem?

Thanks,

Greg

Eric Frost
10-10-2007, 01:43 PM
I haven't heard of a patch. I wonder if it's possible to kill the exe and suppress any messages such as that an application crashed and it wants to send Microsoft your passwords. ?
Eric

Wilfried
10-16-2007, 08:30 AM
Hi,

Also be sure in your custom program that you destroy each object you create. I don't mean the objects that mappoint create because they don't have a destructor, but the other ones. Even in dotNet where some people say that the garbage collector does it all it is very necessary, that can be the reason of slow terminating of your application.

what also could do a lot (but I never tryed it), is before you close the map, first delete all datasets and all shapes and so on the map. Probably closing go mutch faster.

gflynn
10-19-2007, 08:48 AM
Thanks for all responses. More are welcome :-)

Winfred,

I could call the ClearAll function before closing. I will do some tests and see if this adds speed. Is this what you meant?

Thanks,
Greg

Wilfried
10-23-2007, 10:16 AM
Hi,

Not aware of a ClearAll function in mappoint, but you need to destroy each object you create once you dont need it anymore

 
Web mp2kmag.com
mapforums.com