FlipBuffers issue

Windows specific forum
User avatar
A.D.
User
User
Posts: 98
Joined: Tue Oct 06, 2009 9:11 pm

FlipBuffers issue

Post 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
Last edited by A.D. on Wed Aug 21, 2019 11:08 pm, edited 3 times in total.
Repeat
PureBasic
ForEver
User avatar
skywalk
Addict
Addict
Posts: 3972
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: problems since Windows Update 1903

Post 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.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
A.D.
User
User
Posts: 98
Joined: Tue Oct 06, 2009 9:11 pm

Re: problems since Windows Update 1903

Post by A.D. »

could somebody do me a favor and compile the Windowed Screen Example and upload it for me, please!
Repeat
PureBasic
ForEver
User avatar
A.D.
User
User
Posts: 98
Joined: Tue Oct 06, 2009 9:11 pm

Re: problems since Windows Update 1903

Post 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?
Repeat
PureBasic
ForEver
User avatar
skywalk
Addict
Addict
Posts: 3972
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: FlipBuffers issue

Post by skywalk »

It's weird you did not read my reply :idea:
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
A.D.
User
User
Posts: 98
Joined: Tue Oct 06, 2009 9:11 pm

Re: FlipBuffers issue

Post 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.
Repeat
PureBasic
ForEver
User avatar
skywalk
Addict
Addict
Posts: 3972
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: FlipBuffers issue

Post 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.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
A.D.
User
User
Posts: 98
Joined: Tue Oct 06, 2009 9:11 pm

Re: FlipBuffers issue

Post 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 :-)
Repeat
PureBasic
ForEver
User avatar
skywalk
Addict
Addict
Posts: 3972
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: FlipBuffers issue

Post by skywalk »

The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
A.D.
User
User
Posts: 98
Joined: Tue Oct 06, 2009 9:11 pm

Re: FlipBuffers issue

Post 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.
Repeat
PureBasic
ForEver
User avatar
DK_PETER
Addict
Addict
Posts: 898
Joined: Sat Feb 19, 2011 10:06 am
Location: Denmark
Contact:

Re: FlipBuffers issue

Post 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/
Current configurations:
Ubuntu 20.04/64 bit - Window 10 64 bit
Intel 6800K, GeForce Gtx 1060, 32 gb ram.
Amd Ryzen 9 5950X, GeForce 3070, 128 gb ram.
User avatar
A.D.
User
User
Posts: 98
Joined: Tue Oct 06, 2009 9:11 pm

Re: FlipBuffers issue

Post 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
Repeat
PureBasic
ForEver
User avatar
Mijikai
Addict
Addict
Posts: 1360
Joined: Sun Sep 11, 2016 2:17 pm

Re: FlipBuffers issue

Post by Mijikai »

Do you have multiple monitors or recording/profiling software that
could automatically hook into the renderer?
applePi
Addict
Addict
Posts: 1404
Joined: Sun Jun 25, 2006 7:28 pm

Re: FlipBuffers issue

Post 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.
User avatar
A.D.
User
User
Posts: 98
Joined: Tue Oct 06, 2009 9:11 pm

Re: FlipBuffers issue

Post by A.D. »

unfortunately installing them didn't fix the issue
Repeat
PureBasic
ForEver
Post Reply