I created a thread for a procedure a bit long. I see that in the case of exception, does not return the message in the log.
how can I do?
thanks
B4X:
private sub Import
Dim mThread As Thread
mThread.Initialise("Thread1")
Dim aOk As Boolean = mThread.Start(Me, "Import_Data", Array As Object(aBO))
end sub
Private Sub Import_Data (aParam As Object )
try
Catch
Log(LastException)
End Try
end sub
I need another thread because I need to perform a data recalculation procedure (which does not reproduce because it has no effect on the problem) that blocks the main thread for too long time and blocking the App.
with another thread I solved the blocking issue, but in the case of error canno't I see in the log.
The procedure works in the background and can take a long time to process data, this causes blockage of the application until it completes processing.
I hope it is clear.