Hello,
I have a very big dialogbox with lot's of function, use of very complicated arrays etc.
If an error in an array occurs, an errormessage is displayed and the application is quit.
So I tried to avoid the errormessage by using TRY ... CATCH ... END.
My code looks like :If I make my code like this, my application is hanging if an error occurs.
If I don't use TRY ... CATCH ... END, the errormessage is displayed.
What do I do wrong?
Thanks.
I have a very big dialogbox with lot's of function, use of very complicated arrays etc.
If an error in an array occurs, an errormessage is displayed and the application is quit.
So I tried to avoid the errormessage by using TRY ... CATCH ... END.
My code looks like :
TRY
DEFINE DIALOG BOX oDlg .....
REDEFINE GET .....
REDEFINE LISTBOX ........
REDEFINE BUTTON ........
REDEFINE BUTTON ........
ACTIVATE DIALOG .......
CATCH
MsgAlert("An error occured but the dialog will be reopened automatically")
oDlg:End()
ENDIf I don't use TRY ... CATCH ... END, the errormessage is displayed.
What do I do wrong?
Thanks.
Regards,
Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773