I'm attempting to execute some code when a 6302 error is thrown (this happens over ssh in GDC when user presses the blue circle close button on the second form of the GDC). It appears in my CATCH block, I can not execute too much code, in fact it appears to be just one line.
Here is my program:
MAIN
CLOSE WINDOW SCREEN
DEFER INTERRUPT
CALL startlog("errlog")
OPEN WINDOW test_wind WITH FORM "testdisconnect"
CALL errorlog("Start of log")
TRY
MENU "MT"
ON ACTION cancel
EXIT MENU
ON ACTION close
EXIT MENU
END MENU
CATCH
CALL errorlog("one")
sleep 1
CALL errorlog("two")
sleep 1
CALL errorlog("three")
EXIT PROGRAM
END TRY
CLOSE WINDOW test_wind
END MAIN
My form:
DATABASE formonly
LAYOUT
GRID
{
[image1 ]
}
END
ATTRIBUTES
IMAGE image1:image1, IMAGE="test", PIXELWIDTH=640, PIXELHEIGHT=480,
STRETCH=BOTH;
When I run the program and press the Close button on the right, and then confirm to stop, it
only shows that one statement was run. I just want to confirm that that is all that is allowed. I wanted
to connect to database and write a record, but was not able to do that even if I called another function.
Date: 02/12/2018 Time: 09:08:55
Start of log
Date: 02/12/2018 Time: 09:09:08
one
Thanks,
Candy