Community of MapPoint and Virtual Earth Users and Developers
This is a discussion on Updating map in mapcontrol, through secondary thread within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, Can anyone, give me a sample snippet of updating a map from the secondary thread or tell me of ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Updating map in mapcontrol, through secondary thread Can anyone, give me a sample snippet of updating a map from the secondary thread or tell me of procesdure involved. I have tried this, whne I access the map object in teh secondary thread from GetActiveMap does not seem correct , and results in a crash, when I use the object for GetLocation or anything else. I am using VC++ and the Help, is greatly appreciated. mkotian |
| |||
|
Hi, You cannot update a visual control from out of a thread, you can only do it from main thread. If you want to do it from out of a thread then post a message to a custom message handler in the main thread's window and update it from there. This is normal windows behaviour.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| map, mapcontrol, secondary, thread, updating |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Load new map in separate thread to keep ui responsive? | TicK | MapPoint 2006/2009 Discussion | 3 | 11-11-2005 12:07 PM |
| Can't GetActiveMap from a Thread | discostu | MapPoint 2006/2009 Discussion | 1 | 06-08-2005 07:25 AM |
| is Mappoint thread safe | Wilfried | MapPoint 2006/2009 Discussion | 5 | 04-06-2005 01:50 PM |
| Updating Zip Codes | Anonymous | MapPoint 2006/2009 Discussion | 1 | 03-21-2003 12:17 AM |
| getting the clicks on the mapcontrol | blackmap | MapPoint 2006/2009 Discussion | 2 | 02-13-2003 10:24 AM |
Tenerife Holiday
Find a great deal on a Tenerife holiday through UlookUbook! Check out the options online...