SIGSEGV when closing application while balloon hint of TTrayIcon is still visible
Original Reporter info from Mantis: exodusd
-
Reporter name: Robert Rosendahl
Original Reporter info from Mantis: exodusd
- Reporter name: Robert Rosendahl
Description:
I'm getting a SIGSEGV when closing my application while the balloon hint of a TTrayIcon is still showing. This seems to happen only when i compile in debug mode (on Windows 8.1 64bit). The debugger reports the SIGSEGV in include\winapi.inc on line 541, that's the GetWindowLong call on the widget set:
Result := WidgetSet.GetWindowLong(Handle, int);
The problem disappears when i call TrayIcon1.Hide; in FormCloseQuery (or in DataModuleDestroy when working with a TDataModule).
Steps to reproduce:
Compile the attachted test project in debug mode and run it. Clicking on "Show Balloon Hint" will show a balloon hint on the tray icon. Clicking on "Exit" while the balloon hint is still showing will produce the SIGSEGV.
Additional information:
Forum discussion that led to this report:
http://forum.lazarus.freepascal.org/index.php/topic,27863.0.html
Mantis conversion info:
- Mantis ID: 27743
- OS: Windows
- OS Build: 8.1 64bit
- Build: svn revision 48524
- Version: 1.5 (SVN)