Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 2 of 2

Updating map in mapcontrol, through secondary thread

This is a discussion on Updating map in mapcontrol, through secondary thread within the MapPoint Desktop 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 ...

  1. #1
    malkotian is offline 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

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Load new map in separate thread to keep ui responsive?
    By TicK in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 11-11-2005, 01:07 PM
  2. Can't GetActiveMap from a Thread
    By discostu in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 06-08-2005, 08:25 AM
  3. is Mappoint thread safe
    By Wilfried in forum MapPoint Desktop Discussion
    Replies: 5
    Last Post: 04-06-2005, 02:50 PM
  4. Updating Zip Codes
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-21-2003, 01:17 AM
  5. getting the clicks on the mapcontrol
    By blackmap in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 02-13-2003, 11:24 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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