Hello dear programmers,
I'm developing an application with Mappoint using VC++.
What I'm doing is getting a position from the GPS and put a smalle circle on the map. For testing I use a "static" GPS (in our office) that doesn't move, we just use it for testing. It all works well the GPS sends every second a new position (wich is finally the same position).
But the problem is it seems that every position I get, mappoint needs more processingtime. So after a few minutes, mappoint has to process about 300 pushpins, and than the processorfan really has to cool the cpu, because Mappoint sucks almost all of the cpu.
What I did is making a new pushpin everytime I get a new position.
And if I want to follow a vehicle on the map with its trace (these are the old pushpins on the map) than Windows will crash after 5 minutes.
So how can I solve this situation?
Again, I use this everytime I get a new position:
m_Loc = m_Map.GetLocation(Lat, Lon, 1);
m_Pin = m_Map.AddPushpin(m_Loc.GetLocation(), Txt);
I hope somebody can help me, so thank you very much