Page 1 of 2
FlipBuffers issue
Posted: Wed Aug 21, 2019 4:20 pm
by A.D.
I'm having trouble with OpenScreen() and WindowedScreens(): Flipbuffers() causes an memory error. (tested with the original "WindowedScreen" PB Example). I reinstalled PB5.71 and also disabled my antivir program but that's not causing the issue.
Greetings A.D.
*please read posting #4
Re: problems since Windows Update 1903
Posted: Wed Aug 21, 2019 4:42 pm
by skywalk
No problems here with PB v571 LTS x64 on latest Windows 10 Pro x64 v1903 build 18362.295.
Using
Windowed Screen example file.
Re: problems since Windows Update 1903
Posted: Wed Aug 21, 2019 6:58 pm
by A.D.
could somebody do me a favor and compile the Windowed Screen Example and upload it for me, please!
Re: problems since Windows Update 1903
Posted: Wed Aug 21, 2019 9:29 pm
by A.D.
i investigated a little bit more and i found out that the issue occurs only when i am using Purebasic5.71_x64. I installed the x86 version and everything works fine. Maybe it's a PureBasic5.71_x64 LTS bug but not for sure.
the compiler tells me "invalid memory access (read error at adress 420167560) with FlipBuffers() command.
*update: when i choose as subsystem OpenGL with PB5.71_x64 the example is running without any error.... I checked DirectX with dxdiag.exe and it tells me there are no problems. this is weird, isn't it?
Re: FlipBuffers issue
Posted: Thu Aug 22, 2019 12:09 am
by skywalk
It's weird you did not read my reply

Re: FlipBuffers issue
Posted: Thu Aug 22, 2019 11:00 am
by A.D.
i read your post, skywalk. The question is what could be broken on my system so that x64 won't work properly but x86 does and how to repair it.
Re: FlipBuffers issue
Posted: Thu Aug 22, 2019 12:19 pm
by skywalk
I was referring to your claim that it might be an x64 PB bug after I said the code worked for me.
I will post an exe of the example for you to try when I am near a computer.
Re: FlipBuffers issue
Posted: Thu Aug 22, 2019 3:26 pm
by A.D.
yes, i also think something is messed up with my DirectX after the update to 1903, but maybe the problem is related to v1903, purebasic and different hardware setups, who knows

Re: FlipBuffers issue
Posted: Thu Aug 22, 2019 5:23 pm
by skywalk
Re: FlipBuffers issue
Posted: Thu Aug 22, 2019 5:49 pm
by A.D.
thx skywalk, your compilation is not running correctly on my system. I would be grateful, if anybody knows how to fix this so i don't need to setup a new win installation. When running the exe Windows reports an error message "werfault.exe" in combination with MS Visual C++ 2017 Redistributable.
Re: FlipBuffers issue
Posted: Fri Aug 23, 2019 10:20 am
by DK_PETER
A.D. wrote:thx skywalk, your compilation is not running correctly on my system. I would be grateful, if anybody knows how to fix this so i don't need to setup a new win installation. When running the exe Windows reports an error message "werfault.exe" in combination with MS Visual C++ 2017 Redistributable.
I have a hard time believing that the problem is related to Purebasic.
Have you tried turning off werfault.exe to see if the problem persists?
http://windows-exe-errors.com/how-to-di ... n-windows/
Re: FlipBuffers issue
Posted: Fri Aug 23, 2019 10:45 am
by A.D.
yes, i tried this...this is what i already have done:
- sfc /scannow
- dism
- chdksk
- memory test (100% ok)
- checked DX with DXDiag.exe (100%)
- shutdown of WerFault-Service in System Control
- reinstalled Visual C++ 2015/2017 Redistributable
- reinstalled Purebasic
- reinstalled nvidia driver with DDU.exe
- virus scan (no infections) / disabled antivirus app
Re: FlipBuffers issue
Posted: Fri Aug 23, 2019 12:01 pm
by Mijikai
Do you have multiple monitors or recording/profiling software that
could automatically hook into the renderer?
Re: FlipBuffers issue
Posted: Fri Aug 23, 2019 12:28 pm
by applePi
A.D. , install DX9 again, look my post here:
viewtopic.php?f=7&t=73083#p538455
since the ALAN does not reply i suppose it works.
Re: FlipBuffers issue
Posted: Fri Aug 23, 2019 1:22 pm
by A.D.
unfortunately installing them didn't fix the issue