Anonymous
03-16-2005, 09:26 AM
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
Wilfried
03-16-2005, 12:41 PM
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 ...
Anonymous
03-17-2005, 08:22 AM
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
Anonymous
03-17-2005, 01:33 PM
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).
Wilfried
03-18-2005, 02:10 AM
Hi Chris,
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.
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 ?
chrisclarke
06-13-2005, 07:30 AM
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
Wilfried
06-14-2005, 02:56 AM
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 ?
chrisclarke
06-14-2005, 03:40 AM
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
Wilfried
06-14-2005, 03:53 AM
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...