I am having problems integrating MS MapPoint 2009 into my WinForms.Net 2.0 application in C #. I added an ActiveX MapPoint control to the form and have no problems displaying maps and locations; my concern is the time it takes to load a map after it is created.
Tests on my development machine showed that the average load time is 3 to 5 seconds, during which the application is completely blocked. Although this is not entirely unacceptable, it is very difficult to lose control of the application. Also, since the GUI thread is blocked, I cannot show the download dialog or anything to mask the boot time.
The line that hangs is this: (where axMappointControl1 is a MapPoint control)
axMappointControl1.NewMap(MapPoint.GeoMapRegion.geoMapNorthAmerica);
I tried to execute the NewMap method on another thread, but the GUI thread still ends up blocking.
My questions:
- What can I do to speed up MapPoint when loading?
- Is there a way to load MapPoint so that it doesn't block the GUI thread?
Any help is greatly appreciated.
akmad source
share