Crash with empty CustomDrawn form on Win32
Original Reporter info from Mantis: Bart @flyingsheep
-
Reporter name: Bart Broersma
Original Reporter info from Mantis: Bart @flyingsheep
- Reporter name: Bart Broersma
Description:
An empty form build with CustomDrawn on win32 will crash under certain curcumstances.
Steps to reproduce:
Create new application.
Build for CustomDrawn WS.
Open console
Run program.
Notice: console looses focus, but program does not get focus.
(Do NOT click on the form)
Press any key -> crash
The same happens if you run the program from explorer.
Explorer looses focus, program does not get foucus, press key -> crash.
If you first click on the form, it does not crash anymore.
Additional information:
Backtrace:
Starting program: C:\Users\Bart\LazarusProjecten\bugs\CD/cdtest.exe
[New Thread 6968.0x1828]
[DeliverMessage] Target = nil
Program received signal SIGSEGV, Segmentation fault. 0x00521ee0 in DELIVERMESSAGE (TARGET=0x0, AMESSAGE=void) at lclmessageglue.pas:114 114 Target.Dispatch(TLMessage(AMessage)); (gdb) bt # 0 0x00521ee0 in DELIVERMESSAGE (TARGET=0x0, AMESSAGE=void) at lclmessageglue.pas:114 # 1 0x005222cd in LCLSENDKEYDOWNEVENT (TARGET=0x0, CHARCODE=32, KEYDATA=0, BEFOREEVENT=true, ISSYSKEY=false) at lclmessageglue.pas:840 # 2 0x00561aca in CALLBACKKEYDOWN (AWINDOWHANDLE=0x222a90, AKEY=32) at ./customdrawn/customdrawnprivate.pas:232 # 3 0x004d62c7 in WINDOWPROC (WINDOW=656476, MSG=256, WPARAM=32, LPARAM=3735553) at ./customdrawn/wincallback.inc:597 # 4 0x753662fa in USER32!OffsetRect () from C:\Windows\syswow64\user32.dll # 5 0x000a045c in ?? () # 6 0x75366d3a in USER32!IsWindow () from C:\Windows\syswow64\user32.dll # 7 0x004d5e10 in CALLDEFAULTWINDOWPROC (WINDOW=0, MSG=736546941, WPARAM=1966908958, LPARAM=0) at ./customdrawn/wincallback.inc:64 # 8 0x753677c4 in USER32!AnyPopup () from C:\Windows\syswow64\user32.dll # 9 0x00000000 in ?? ()
(gdb)
Mantis conversion info:
- Mantis ID: 25461
- OS: Window
- OS Build: Win7
- Build: r43601
- Platform: i386
- Version: 1.3 (SVN)