Modal window closes with a SIGILL
Original Reporter info from Mantis: avr-asm-tut
-
Reporter name: Gerhard
Original Reporter info from Mantis: avr-asm-tut
- Reporter name: Gerhard
Description:
I have a large application with lots of different windows (the avr_sim AVR controller simulator). One of them is a modal window, that consists of two edit fields and three buttons (two of them of the modal type). Under certain circumstances the main form opens the window modal and lets the user select several settings. The modal window worked fine over the last approximately eight versions, but now the window is opened and closeses immediately without user action, returning malformed settings.
On window opening, the "FormShow" event procedure takes two strings from two public variables, that have been changed by the main form and writes those strings as they are to the two edit fields. If I single step through the FormShow event, I get an error when the second string variable is written to the edit field. An error of the SIGILL type is occurring, but only during single-stepping through the code. During normal execution no error halts program execution even though all error checks are enabled.
In single-stepping it is thrown during the conversion of the string to UTF16. As the string variable just consists of normal ASCII characters conversion is obviously unnecessary. Changing the type from "String" to "AnsiChar" does not change that.
I have two questions:
- What can I do to identify the error's cause any deeper?
- Are SIGILL signals unrecognized in debug mode?
brgs,
gerhard
Steps to reproduce:
As described above.
Mantis conversion info:
- Mantis ID: 35875
- OS: Win 10
- OS Build: ?
- Build: 60954
- Platform: x86-64
- Version: 2.0.2