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

Windows specific forum
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

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

Post 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)
Last edited by IdeasVacuum on Mon Aug 29, 2022 12:41 am, edited 1 time in total.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
mk-soft
Always Here
Always Here
Posts: 6244
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

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

Post by mk-soft »

I can't recreate it here,

Any threads running in the background? Or Mutex and Semaphores?
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Little John
Addict
Addict
Posts: 4787
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

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

Post 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?
User avatar
Michael Vogel
Addict
Addict
Posts: 2806
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

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

Post 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,...)?
User avatar
Mijikai
Addict
Addict
Posts: 1520
Joined: Sun Sep 11, 2016 2:17 pm

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

Post by Mijikai »

It could also be a problem in connection with capture/streaming software if used.
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

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

Post 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.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Post Reply