Error dialog displays then disappears

delphi package - automated exception handling
Post Reply
martin.lawrence
Posts: 5
Joined: Tue Jul 31, 2018 11:13 pm

Error dialog displays then disappears

Post by martin.lawrence »

We are sometimes getting an error dialog displaying very briefly (about half a second a slow pc) then disappearing. Our dialog should display until there is user input. Any idea what could be causing the dialog fading? This is an intermittent problem - usually we do see the dialog and can manually respond to it.
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: Error dialog displays then disappears

Post by madshi »

Could this be during process shutdown?
martin.lawrence
Posts: 5
Joined: Tue Jul 31, 2018 11:13 pm

Re: Error dialog displays then disappears

Post by martin.lawrence »

The error is often during start up
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: Error dialog displays then disappears

Post by madshi »

Hmmm... That sounds ugly. It could either be the process running out of memory very quickly and agressively (in which case madExcept might not be able to do its job properly, anymore, either). Or it could be some case of buffer overrun type access violation stuff. If someone overwrites random memory, all hell can break lose.

I'd suggest that you try the "instantly crash on buffer overrun" feature on your development PC. It does eat a lot of additional RAM, though, so in 32bit it may cause your process to fail with "out of memory" problems. But with a bit of luck, it might not. If it works properly, either nothing will happen at all. Or alternatively you might get new access violations at places where your code produces buffer overruns.
Post Reply