MapPoint Forums

MapForums

Community of VE/MapPoint 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

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,094
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 01:19 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map

Ski Spain
Ski in Spain to enjoy the rich culture and bustling restaurants and bars. Skiing in Spain is suitable for a range of standards and is great value when you book at Holiday Hypermarket.

Spain Holidays
Find great Spain Holidays with Travel Counsellors. A personal Travel Counsellor can help you plan the perfect holiday to Spain.

Holiday to Thailand
Want to go somewhere new? Book a low cost holiday to Thailand at dealchecker.co.uk. See the stunning national parks and uninhabited islands.

Sri Lanka Holidays
There are some outstanding deals on Sri Lanka holidays at theholidayplace.co.uk. Sri Lanka is renowned for it's exceptional beauty! Book a holiday today!

Portugal
As well as providing some great weather Portugal has much to offer culturally. There are numerous museums, monuments and places of historical interest to explore. Despite the rich history there is a buzzing nightlife and great shopping too.

Bargain Holidays
To plan your holidays at bargain prices, use Travel.co.uk to explore all the possibilities.

Sharm Holidays
See beautiful Egyptian sites! Info on Sharm holidays, only at On The Beach.


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