MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




Updating map in mapcontrol, through secondary thread

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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-15-2005
Junior Member
White Belt
 
Join Date: Aug 2005
Posts: 1
Updating map in mapcontrol, through secondary thread

Hi,

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 08-16-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,177
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
map, mapcontrol, secondary, thread, updating


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

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


All times are GMT -5. The time now is 08:25 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Tenerife Holiday
Find a great deal on a Tenerife holiday through UlookUbook! Check out the options online...



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59