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 5 of 5

CloseMap is slow

This is a discussion on CloseMap is slow within the Development forums, part of the MapPoint Desktop Discussion category; I am using MapPoint 2006 and when I call CloseMap it takes 4 to 12 seconds. I have heard on ...

  1. #1
    gflynn is offline Junior Member White Belt
    Join Date
    Oct 2007
    Posts
    3

    CloseMap is slow

    I am using MapPoint 2006 and when I call CloseMap it takes 4 to 12 seconds. I have heard on this forum that it was a known problem and that there was no patch at that time. Have things changed? Is there a solution to this problem?

    Thanks,

    Greg

  2. #2
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4

    Re: CloseMap is slow

    I haven't heard of a patch. I wonder if it's possible to kill the exe and suppress any messages such as that an application crashed and it wants to send Microsoft your passwords. ?
    Eric
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  3. #3
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: CloseMap is slow

    Hi,

    Also be sure in your custom program that you destroy each object you create. I don't mean the objects that mappoint create because they don't have a destructor, but the other ones. Even in dotNet where some people say that the garbage collector does it all it is very necessary, that can be the reason of slow terminating of your application.

    what also could do a lot (but I never tryed it), is before you close the map, first delete all datasets and all shapes and so on the map. Probably closing go mutch faster.

  4. #4
    gflynn is offline Junior Member White Belt
    Join Date
    Oct 2007
    Posts
    3

    Re: CloseMap is slow

    Thanks for all responses. More are welcome

    Winfred,

    I could call the ClearAll function before closing. I will do some tests and see if this adds speed. Is this what you meant?

    Thanks,
    Greg

  5. #5
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: CloseMap is slow

    Hi,

    Not aware of a ClearAll function in mappoint, but you need to destroy each object you create once you dont need it anymore

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. MP2006 - C# - Very SLOW closing map
    By pcfountain in forum Development
    Replies: 1
    Last Post: 05-22-2007, 12:44 PM
  2. SLOW Reverse Geocoding
    By itay in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-07-2006, 10:28 PM
  3. Shapes.AddPolyline is very slow
    By tdaffin in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 01-27-2006, 08:08 AM
  4. VB .NET is so slow!
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 07-28-2004, 04:17 AM
  5. moving through recordset is slow
    By stephenmillington in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 07-07-2004, 06:28 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