View Full Version : Memory problem

04-20-2009, 08:28 AM

I've found few thread about this problem but did not found solutions.

I'm using Mappoint 2009 with Visula Basic 6.

My application displays near 100 vehicle movment.

After few hours, I got a memory problem.

With the task manager, I can see that memory usage increase and never decrease, even if I tried the minimize/maximize theory.

My map objects are all created with the SET command and at the end of each routine, I use a SET...=NOTHING for each of them.

Any other idea?


04-20-2009, 09:45 AM
The minimize/maximize must be done through the GUI or using windows messages. Using the MapPoint API's window state property does not work.

The alternative is probably to restart MapPoint, or to re-arrange how your code works.

For example are you moving pushpins around? If you make sure you move them and you don't delete/create them. That sort of thing. Try to avoid object creation & deletion if possible. If you do delete them - make sure you do a clean job of it (eg. the setting to nothing )


Eric Frost
04-20-2009, 09:54 AM
Richard Marsden was telling me about this issue recently, I think the solution was to minimize the application and then pop it back up. Somehow that performs the memory management tasks. Let us know if this helps!