WindowResizing flicker issue - can damage the running OS

Just starting out? Need help? Post your questions and find answers here.
User avatar
Saki
Addict
Addict
Posts: 830
Joined: Sun Apr 05, 2020 11:28 am
Location: Pandora

Re: WindowResizing flicker Bug - damage the running OS

Post by Saki »

@Null
You are here in the Windows Bug Forum, you cannot test with Linux, which you probably know, right ?
Please indicate exactelly the source and line and write a detailed description of the error.
Your post is only bashing.
Last edited by Saki on Mon Nov 30, 2020 2:33 pm, edited 6 times in total.
地球上の平和
User avatar
Mijikai
Addict
Addict
Posts: 1520
Joined: Sun Sep 11, 2016 2:17 pm

Re: WindowResizing flicker Bug - damage the running OS

Post by Mijikai »

Saki wrote:Hi Mijikai

Running ResizeWindow() alone is enough to trigger the error irreversibly on the OS.
The wizzard code above just shows it very nicely, because he is extremely computationally
intensive and therefore everything runs relatively slow.
I highly doubt there is a bug, calling ResizeWindow() inside a size callback cant be good - it will flood the msg queue.
User avatar
Saki
Addict
Addict
Posts: 830
Joined: Sun Apr 05, 2020 11:28 am
Location: Pandora

Re: WindowResizing flicker Bug - damage the running OS

Post by Saki »

Hi Mijikai,
I'm sure you're right.
It's basically just a question of whether you can prevent the OS from behaving temporary irreversibly after the bug has been triggered.
If you find a way around this, everything would be okay.
Unfortunately I can't handle your callback routine, you have to build it in yourself to try it.
I was going crazy trying to find the cause of the flickering, which was suddenly gone the next day.
The bad thing is that it affects everything that normally works and you can't localize it and that's what causes it if you don't know the cause.
But it is nothing that needs to be fixed.
If you know what triggers it, you just take care not to trigger it.
On 4K it is extreme.

Best Regards Saki
地球上の平和
Fred
Administrator
Administrator
Posts: 18384
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: WindowResizing flicker Bug - damage the running OS

Post by Fred »

It's the OS which is responsible to terminate application which are badly coded. If Win10 lag and crash when a client program (running with standard account and right) is badly coded, Win10 needs to be fixed. You can't expect PureBasic to handle all the bad programming issues. And yes, calling ResizeWindow() will trigger a size event, so it will create an endless loop.
User avatar
Saki
Addict
Addict
Posts: 830
Joined: Sun Apr 05, 2020 11:28 am
Location: Pandora

Re: WindowResizing flicker Bug - damage the running OS

Post by Saki »

Hi Fred, many thanks for the clarification.

Best Regards Saki
地球上の平和
User avatar
Saki
Addict
Addict
Posts: 830
Joined: Sun Apr 05, 2020 11:28 am
Location: Pandora

Re: WindowResizing flicker issue - can damage the running OS

Post by Saki »

What else struck me about this thing.
The popular ScreenToGif program also uses this
by dragging the left or upper edge of the selection window.
But the OS does not crash, everything continues normally.
So there a different approach is used for the window resizing, Which does not trigger the bug.
The source code is open, so you could possibly see how they do the window resizing.

https://github.com/NickeManarin/ScreenToGif
地球上の平和
Post Reply