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

vb.NET / MapPoint 2013 OCX ActiveX - Threading -> Copy MapPoint.Route to an other instance

This is a discussion on vb.NET / MapPoint 2013 OCX ActiveX - Threading -> Copy MapPoint.Route to an other instance within the Development forums, part of the MapPoint Desktop Discussion category; Hey ho, I'm working now since a few weeks with mappoint. And now i have a big problem. I try ...

  1. #1
    mpgrs is offline Junior Member White Belt
    Join Date
    Aug 2014
    Posts
    7

    vb.NET / MapPoint 2013 OCX ActiveX - Threading -> Copy MapPoint.Route to an other instance

    Hey ho,

    I'm working now since a few weeks with mappoint. And now i have a big problem. I try to simulate the "mappoint-progressbar" dialog for calculte/optimizing a route.
    So i have my UI-Thread where i open a second form (for the progressbar) and start a new thread in form1 for calculating the route.
    Now i tried to start a second mappoint prozess (that works) but i have to copy the waypoints from the original thread to the second one. So i hope i can run the calculation in the second
    thread. (If i didn't do this everything works, but there is on bug wich will freez my forms -> i start mappoint in the ui thread ) Is there any way to do this?

    I hope you know what i mean

  2. #2
    Winwaed's Avatar
    Winwaed is offline Mapping-Tools.com Black Belt
    Join Date
    Feb 2004
    Location
    Irving,Texas
    Posts
    1,859
    Blog Entries
    60

    Re: vb.NET / MapPoint 2013 OCX ActiveX - Threading -> Copy MapPoint.Route to an other instance

    It is possible to run a progress form but it isn't going to be able to connect with the optimize function's actual progress. Ie. it will just be a "doing work" indicator that would continue regardless of the state of the optimization (although at the end of the optimization you can kill the progress bar).

    The secret is to keep all your GUI actions in one thread, and all your MapPoint actions in another. In theory it is possible to use multiple threads to access MapPoint but this can cause a lot of problems (some not where you might expect them). It is far easier to restrict all communication to a MapPoint instance through one thread.

    I'm not sure what you mean about copying route information: If you are trying to copy a MapPoint COM object from one MapPoint instance to another, then you cannot do this directly. You will have to extract the information and then re-create the object.
    (also I don't see how having two MapPoint instances any progress bar problem)
    Winwaed Software Technology LLC
    http://www.winwaed.com
    See http://www.mapping-tools.com for MapPoint Tools

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 08-20-2014, 08:34 AM
  2. Pushpins can't be set in AutoRoute 2013 and MapPoint 2013
    By MapsUser in forum Products: Pushpin Tool, Single State Mapper
    Replies: 0
    Last Post: 07-14-2014, 10:58 AM
  3. Replies: 0
    Last Post: 11-30-2012, 10:54 AM
  4. Hello There - C# TabPage and Mappoint instance
    By phirki in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 01-13-2009, 11:36 PM
  5. ActiveX Control instance problems
    By perimore in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 03-16-2008, 12:50 PM

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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57