I have a problem with a Quickwin application. It is an application I have worked on and regularly updated for many years that has suddenly become unstable. I have mouse events registered against a couple of child windows. When I make a mouse click on the window the programs crashes with a stack dump.
Under debug the program generates an exceptions like below:
First-chance exception at 0x7769fb81 in fil70.exe: 0xC0000008: An invalid handle was specified.
The stack at this point is as below.
[Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll]
fil70.exe!_for__release_lun() + 0x1bc bytes
fil70.exe!_GETUNITQQ() + 0x4e bytes
fil70.exe!_DeReferenceGetUnitPointer() + 0x13 bytes
fil70.exe!__QWGChangeMouseStatus() + 0x12c bytes
fil70.exe!__QWGraphWndProc@16() + 0x338 bytes
If I ignore the exception (I will get three or four more that are the same) execution control drops into the correct call back function that was registered against the mouse event and also return correct parameters for the event (unit, button event ,keystate, position).
I am currently using Intel(R) Visual Fortran Composer XE 2011 Update 9 with Integration for Microsoft Visual Studio* 2010, 12.1.3526.2010. I was planning to buy the update to the latest level but I don’t expect that to fix anything.
I am running on W7 Professional x64 SP1 by the way.
Any ideas what I can do to resolve this? I