VB6 newmap crash

SPearse
10-20-2007, 03:53 AM
My application sometimes crashes on some, but not all PC's. It is written in VB6 with MP2006.
in form_activate I have
themap="\\c\data\mymap.ptm
on error goto EHandler
'record position in code=1
mapctl.newmap themap
'record position in code=2
exit sub
EHandler:
'dump the error
end sub

This code is executed at startup, and locks up 30% of the time on some PC's. i.e. position 1 is recorded, position 2 is not. The form never becomes visible, and no errors are recorded or appear.

I will be back at the customers site today (no broadband!) and will try redirecting the prog to use a local map (i.e. themap=c:\data\mymap.ptm) rather than via the network...

Any ideas?

Wilfried
10-23-2007, 10:18 AM
Hi,

need some more information to debug. do you use exception blocks ? very importand because stack is cleared when exception happens.

 
Web mp2kmag.com
mapforums.com