B4J Question how to show lang.IllegalStateException Error in Release version

kohle

Active Member
Licensed User
Longtime User
Hi,


I get an an lang.IllegalStateException error with the sql library + ucanaccess-5.0.0 (MDB access), Release compile.

I see the error in the protocol window, but the application error function seems not to be triggered :

B4X:
'error at :     sql.ExecNonQuery(strSQL)
            



Sub Application_Error (Error As Exception, StackTrace As String) As Boolean
    
    
    
    jxui.MsgboxAsync(StackTrace, "Error: " & Error)
    sql.Close
    'LogError(StackTrace)
    Return False
End Sub
 

DonManfred

Expert
Licensed User
Longtime User
The process has crashed. As far as i know you can not show any msgbox in the application_error sub.
Add a log to the sub and remove the call to
jxui.MsgboxAsync
 
Upvote 0

kohle

Active Member
Licensed User
Longtime User
I have no influence on this error. While I was testing with a ms access mdb some how the index get corrupted. This can happen also in other scenarios.

Try / Catch works fine.

Thanks
 
Upvote 0
Top