-gl causes LCL WinCE application to crash on unhandled exception
Original Reporter info from Mantis: PascalDragon @PascalDragon
-
Reporter name: Sven Barth
Original Reporter info from Mantis: PascalDragon @PascalDragon
- Reporter name: Sven Barth
Description:
When an unhandled exception is raised inside an LCL WinCE application compiled with -gl the program simply terminates cause a RunTime(6) exception is raised in BackTraceToStr. This second exception causes the exception handler to terminate the process.
If -gl is omitted or BackTraceToStr is set to SysBackTraceToStr no RunTime error is raised.
The version of Windows Mobile doesn't matter (tested with 5.0, 6.0 and 6.5).
Steps to reproduce:
Use the attached demo application on a Windows Mobile device or the emulator. Click "Raise Unhandled Exception" to see the application terminating.
Use "Use SysBackTraceToStr" to BackTraceToStr to the default function and use "Raise Unhandled Exception" again. The application now shows the default exception handling dialog.
Mantis conversion info:
- Mantis ID: 14330
- OS: Windows Mobile
- OS Build: 5.0
- Platform: ARM
- Version: 2.2.4