MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Mappoint active x control crashes at random points

This is a discussion on Mappoint active x control crashes at random points within the MapPoint 2006/2009 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 ...


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 03-16-2005
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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
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 03-16-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
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 ...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 03-17-2005
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 03-17-2005
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 03-18-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
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 ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 06-13-2005
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7 (permalink)  
Old 06-14-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
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 ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8 (permalink)  
Old 06-14-2005
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9 (permalink)  
Old 06-14-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
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...
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
active, control, crashes, mappoint, points, random


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
Problem instantiating MP Active X control in a VB and VC++ Brent MapPoint 2006/2009 Discussion 2 05-10-2006 01:25 PM
MapPoint 2004 Active-X control: how to "bump" pus citrix_99301 MapPoint 2006/2009 Discussion 3 03-18-2006 03:50 AM
How to use the mappoint 1.0 active x control from C# ? Anonymous MapPoint 2006/2009 Discussion 0 01-22-2004 07:02 AM
Control Crashes - Help !!! dougw MapPoint 2006/2009 Discussion 1 04-10-2003 09:29 AM
MapPoint crashes computer at run Anonymous MapPoint 2006/2009 Discussion 2 01-19-2003 07:35 PM


All times are GMT -5. The time now is 04:40 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


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