Hi Gorge

No it doesn't and, if you check out my reply to Greg (please), you can
get more info.  I don't see where there's an error in this routine but
it looks like I'm going to have to put error checking in there, as you
suggest.

Regards

Terry 

-----Original Message-----
From: Jorge Gil [mailto:[EMAIL PROTECTED] 
Sent: 18 May 2006 19:01
To: Terry McDonnell
Subject: RE: [MI-L] OnError Command

Hi Terry,

Does your ERROR_REPORT function have error handling itself? ;)

>From my experience if an error occurs within a function not only does
the tool crash, but it kills all menus and toolbars. If the error occurs
within a sub only the tool crashes.

So maybe your problem is that there is an error in the ERROR_REPORT
function itself... 
Because of this problem I have been adding error handling in all my
functions.

Regards,
Jorge

_________________

Jorge Gil
Associate, R&D 

SPACE SYNTAX 

D          +44  (0) 20 7940 1881
 
[EMAIL PROTECTED]
www.spacesyntax.com

-----Original Message-----
From: Terry McDonnell [mailto:[EMAIL PROTECTED]
Sent: 18 May 2006 17:49
To: [EMAIL PROTECTED]
Subject: [MI-L] OnError Command

I've just started to put error handling in my finished system, to
bullet-proof it, and this is the 1st time I've used the feature in MB.

Simple question:  Does an OnError event (dealt with in a handler) ALWAYS
result in the program bombing out afterwards?
 
I want non-fatal errors to be reported to the user but to allow them to
continue.  To this end I've done as the following:
----------------------------------------------------
' End of a sub with a loop, in which error happens Exit sub

ERR_RZSTOPS:
llAbort = ERROR_REPORT( Err(), Error$(), "SHOW_STOPS_TOO - Can't get
Route's Stops", FALSE) Resume ERR_RESUME

ERR_STOPS:
llAbort = ERROR_REPORT( Err(), Error$(), "SHOW_STOPS_TOO - Can't get
Route's Stops' Counties", FALSE) Resume ERR_RESUME

ERR_RUNORDER:
llAbort = ERROR_REPORT( Err(), Error$(), "SHOW_STOPS_TOO - Can't get
Route's Stops' Running order", FALSE) Resume ERR_RESUME

ERR_RESUME:

End Sub
----------------------------------------------------
So I assumed that after each error handler, the prog will resume at the
label ERR_RESUME:, where the next statement is "End Sub".  Hence the
code would "drop out" of the sub and return to the command following
that which called it.

Instead, the screen clears, all my tools and menus disappear and MI
returns to native mode.

'ppreciate it

Terry McDonnell

_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l







_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l

Reply via email to