Exception handling not working on ARM-WinCE
Original Reporter info from Mantis: PaulvH
-
Reporter name: Paul van Helden
Original Reporter info from Mantis: PaulvH
- Reporter name: Paul van Helden
Description:
A trivial app with Exception.Create('Hallo world') crashes at line 1514 of LCLProc.pas with RunError(6):
DebugLn(BackTraceStrFunc(ExceptAddr));
So, no exceptions are ever seen by the user. The app simply terminates.
Additional information:
This looks like a FPC problem as the error occurs within SysBackTraceStr.
Temporary solution: comment out DumpExceptionBackTrace at lines 1092 & 1097 in application.inc
This happens even with DebugLn not producing output.
Suggestion: DumpExceptionBackTrace should terminate immediately if no debug output are to be produced. (Same as DebugLn).