Page 1 of 1

[Solved] Programs Compiled with PB v6LTS flash the Screen Black on Close

Posted: Sun Aug 28, 2022 1:39 pm
by IdeasVacuum
Programs Compiled with PB v6LTS flash the Screen Black on Close. Does everyone experience this? I'm on Windows7 64bit. When the program is closed (regular close button on the Window Titlebar) the Desktop (both screens) flashes black for at least 1 second. I have never seen this happen before with 'old' PB (like PB 573)

Re: Programs Compiled with PB v6LTS flash the Screen Black on Close

Posted: Sun Aug 28, 2022 2:27 pm
by mk-soft
I can't recreate it here,

Any threads running in the background? Or Mutex and Semaphores?

Re: Programs Compiled with PB v6LTS flash the Screen Black on Close

Posted: Sun Aug 28, 2022 3:59 pm
by Little John
IdeasVacuum wrote: Sun Aug 28, 2022 1:39 pm Programs Compiled with PB v6LTS flash the Screen Black on Close.
Personally, I never experienced that (using Windows 10 and 11 x64).
Can you post some working code that demonstrates the issue?

Re: Programs Compiled with PB v6LTS flash the Screen Black on Close

Posted: Sun Aug 28, 2022 5:05 pm
by Michael Vogel
Do you se this effect with all of your programs (even a simple "Hello world") or only for specific programs (console, directx, opengl,...)?

Re: Programs Compiled with PB v6LTS flash the Screen Black on Close

Posted: Sun Aug 28, 2022 6:29 pm
by Mijikai
It could also be a problem in connection with capture/streaming software if used.

Re: Programs Compiled with PB v6LTS flash the Screen Black on Close

Posted: Mon Aug 29, 2022 12:40 am
by IdeasVacuum
Thanks for all the suggestions. I tried testing progressively larger projects in PB6 and they do not cause the flashing, but if I run *similar .pb files in PB6 that were written in 5.72/5.73, flashing occurs.

*similar because code copy-pasted from 5.72/5.73 files

....narrowed it down to a common include file used to get system info such as Desktop metrics, Locale, Disk space etc. A lesser-used Procedure to get OpenGL info (Version, Vendor) is the culprit - so I have simply commented it out.