Page 1 of 1

Error dialog displays then disappears

Posted: Tue May 07, 2019 4:41 am
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.

Re: Error dialog displays then disappears

Posted: Tue May 07, 2019 7:42 am
by madshi
Could this be during process shutdown?

Re: Error dialog displays then disappears

Posted: Tue May 07, 2019 7:47 pm
by martin.lawrence
The error is often during start up

Re: Error dialog displays then disappears

Posted: Tue May 07, 2019 10:15 pm
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.