Page 1 of 1

Crash down

Posted: 14 Oct 2010, 00:53
by Rucksacktraeger
Hi,

The StatusBar works so far. But when I keep my mouse pointer for more than 1second on the control, the whole application crashes down. You can test it with a new project. Just insert the component and place a unicode statusbar in the form. Or is this error only at my computer?!?

Best Regards, Pete

Re: Crash down

Posted: 14 Oct 2010, 06:57
by TiKu
It doesn't happen here (Windows 7). Does it happen in the compiled program, i.e. the exe file? Then we could try to create a crash dump using BugTrap. This would help me to identify the line of code that causes the crash.

Re: Crash down

Posted: 14 Oct 2010, 14:05
by Rucksacktraeger
It happens compiled and not compiled on WinXP english and WinXP germarn. Attached all project files.

How to make a crash dump? Does the VS2008 debugger help you? It says:
Unbehandelte Ausnahme bei 0x5d097092 in Project1.exe: 0xC0000005:
Zugriffsverletzung beim Lesen an Position 0x00000000.

Re: Crash down

Posted: 14 Oct 2010, 21:19
by TiKu
With your sample project it was to reproduce and fix easily, thank you. Your sample project also crashes on Windows 7. I don't know why it did not crash when I tried myself.
The actual crash is caused by a missing NULL check inside comctl32.dll. In other words: It's Microsoft's fault. I have implemented a workaround.

I think I'll release a new version of the StatusBar control within the next 3 days.

Re: Crash down

Posted: 19 Oct 2010, 04:56
by Rucksacktraeger
Hi Timo,
thx a lot for debugging. It's hard to eplain the user: You can do everything - but do not keep the mouse 2 seconds on the Statusbar ;-)