Oppolzer - Informatik / Blog


Blog-Hauptseite      Neuester Artikel      Älterer Artikel      Neuerer Artikel      Älterer gleiche Kategorie      Neuerer gleiche Kategorie

PL1-L - Merkwürdige Fehler im Zusammenspiel mit PL/1 und C (ON ERROR)

Subject:

Re: ON ERROR GOTO ... ??

From:

Bernd Oppolzer <bernd.oppolzer@T-ONLINE.DE>

Reply-To:

PL1 (language) discussions <PL1-L@LISTSERV.DARTMOUTH.EDU>

Date:

2012.06.20 22:19:06


Bernd,

The first ON ERROR block is intended to perform error handling for the CALL
statement. If the error handler fails, then the CALL statement is bypassed and
execution proceeds by setting up a new error handler. If an error is
subsequently detected, the second ON ERROR block is invoked, at which time error
intercepts are disabled by the ON ERROR SYSTEM statement, and an failure in the
error handler results in the termination of the program.

This approach is both common and good design.

I would consider it to be unlikely that the error handler setup is the cause of
your problem.

I do not recommend the removal on the ON ERROR units. Rather, I recommend that
"ON ERROR BEGIN" be changed to "ON ERROR SNAP BEGIN".

J.B.

-----Original Message-----
From: PL1 (language) discussions [mailto:PL1-L@LISTSERV.DARTMOUTH.EDU] On
Behalf Of Bernd Oppolzer
Sent: Wednesday, June 20, 2012 4:42 PM
To: PL1-L@LISTSERV.DARTMOUTH.EDU

Blog-Hauptseite      Neuester Artikel      Älterer Artikel      Neuerer Artikel      Älterer gleiche Kategorie      Neuerer gleiche Kategorie