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

Mappoint active x control crashes at random points

This is a discussion on Mappoint active x control crashes at random points within the MapPoint Desktop Discussion forums, part of the Map Forums category; hi, we have an application that uses the mappoint active X control.. the customer uses it quite alot, however around ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    Mappoint active x control crashes at random points

    hi,
    we have an application that uses the mappoint active X control.. the customer uses it quite alot, however around 10 times aday when they bring up the form that is supposed to hold the mappoint control you just get a blank form and the app crashes.. i have logged my way through the code and it finds the locations ok and everything and its just when the form is shown (modaly) it will crash.. it doesn't do this all the time.. perhaps 10% of the time.. what they get is a form with nothing in it.. just a white (or black) square.. then our support team has to go in and kill the mappoint process and our app..

    its running in a terminal server enviroment.. with 3 users.. 2 light users and one more heavy users..

    please anybody, any thoughts.. this is becoming a real problem.. to the point where we might have to ditch mappoint and use another product..

    fyi we are using vb6 and mappoint 2004

    thanks
    chris

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

    You have probably an unhandled exception error, an overridden pointer, a stack problem or a closed object where the pointer is still holding a value.

    First of all try to find out if it has something to do with terminal server. There are many post here about this, but I dont know if hat can cause problems.

    Second step is to log all errors that can occuur, put your code into exception blocks and log all esceptions.

    Then you come closer to the poijnt. It is probably a very minor thing but without debugging nobody can find it ...

  3. #3
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    Hi,
    i am writting out to a log file every line of code that gets executed.. and when the code enters an on error resume next it prints out the err.description after every statement (only a couple).. not particular errors..

    still just crashs randomly.. doesn't crash on any line of code.. just when the form is shown..

    any more thoughts

    i have looked at termainl server compatability flags and have had no luck..

    thanks
    chris

  4. #4
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    I've found that MapPoint crashes randomly when I do some large batch process. For example, if I try to create drive-time polygons and export the drivetime coordinates (lat/long) to a file, the program will crash at different times (batch size of greater than 20,000 pts).

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

    Quote Originally Posted by Chris Clarke
    still just crashs randomly.. doesn't crash on any line of code.. just when the form is shown..
    Can you tell me exacly what that you mean by "crash" because this word ican b used for one thousand situattions.. Also there is no 'randomly', there is happening something at that moment or a litle before. So it can be that the "crash" is some seconds later after a buggy code. Often this can heppen when overriding pointers.

    Quote Originally Posted by Chris Clarke
    i have looked at termainl server compatability flags and have had no luck
    Did you already test ouside terminal server so see f that has something to do with it ?

  6. #6
    chrisclarke is offline Junior Member White Belt
    Join Date
    Jun 2005
    Posts
    5
    hi,
    still getting this problem..

    sometimes the form comes up with nothing in it.. i.e. its found the address and added the pushpin ok.. but when the form is shown it doesn't come up with the map.. other times it comes up with the basic map in the correct location but then freezes and doesn't draw the road names/pushpins..etc

    this is getting a real problem..

    any cluse people?

    thanks
    chris

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

    I have no idea and never had that problems. Maybe this is a hint: Often while developping I interrupt the debugger, or I have exception errors (who doesnt and I stop debugging. If Itry then later start my application again it hangs "somewhere". If all mappoint instances are killed then all work fine. Note that this only happens when program terminate abnormally.

    Can you check in task manager, when you have that problem, how many instances of mappoint are running ?

  8. #8
    chrisclarke is offline Junior Member White Belt
    Join Date
    Jun 2005
    Posts
    5
    hi,
    i thought it might of been this.. however there aren't any other mappoint processes running when it crashs.. we are running on a terminal server and i've tried giving each user there own database which doesn't make any difference..

    rgds
    chris

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

    Did you also try same application not on terminal server ? Regulary terminal server issues are poping up here, but I dont recall feedbacks on what solutions of problems where... _if_ it has something to do whit terminal server of course...

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Problem instantiating MP Active X control in a VB and VC++
    By Brent in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 05-10-2006, 01:25 PM
  2. MapPoint 2004 Active-X control: how to "bump" pus
    By citrix_99301 in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 03-18-2006, 03:50 AM
  3. How to use the mappoint 1.0 active x control from C# ?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 01-22-2004, 07:02 AM
  4. Control Crashes - Help !!!
    By dougw in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 04-10-2003, 09:29 AM
  5. MapPoint crashes computer at run
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 01-19-2003, 07:35 PM

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