PB compatibility problem Windows 7

Just starting out? Need help? Post your questions and find answers here.
Crystal Noir
User
User
Posts: 38
Joined: Thu May 01, 2003 12:15 am

PB compatibility problem Windows 7

Post by Crystal Noir »

Hi all :)

(sorry for my bad english)

I don't know if it's a bug or not, so I didn't know where to post.

Before here's my system : Windows 7 64 bit home / 5 Go RAM / ATI HD 4870 / Dual core 5200 +

I have a big problem with PB 4.41 with my PC.

I will try to explain all of my tests et the result.

First, when I compile a program that I made, in fullscreen, I have a black screen and nothing...Sometimes I have this error : "The specified output is NULL (0 value)" but sometimes not all the time.

I've compiled the program and made an exe. I tried this ex with 2 other PC : that's work on them ! So, It's not the code ! But on my PC nothing...doesn't work

I said : may be direct X 9...but my games works fine and other app that use directx 9. I tried to reinstall it : same problem.

I said : May be windows Seven ? I have re-installed it with a new directx 9 : same problem

I said : May be my ATI ? I tried to change my video card with a NVidia 9800 GT... : same problem !

It's not windows 7, not directx, not the video card....what else ? lol

I tried to use the openwindowedscreen mode....that's work !

The problem is only on the fullscreen mode.

Let's resume :

I tried to reinstall windows 7 and directx 9 : nothing

I tried to change my video cards : nothing

I don't understand what 's the problem.

Could you help me please ?

Thx in advance.
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Re: PB compatibility problem Windows 7

Post by Kaeru Gaman »

hi there! ö.ö/

on win7 there are no old drivers, you may have to additionally install some DX9 dlls.
The specified output is NULL (0 value)
is an error that occurs when you want to open a drawing on an non existant DC.
normally, it's StartDrawing(ScreenOutput())) when there is no screen present.

for further help, it would be good if you post some short code that produces the problem,
connected with infos about system and settings.
oh... and have a nice day.
Crystal Noir
User
User
Posts: 38
Joined: Thu May 01, 2003 12:15 am

Re: PB compatibility problem Windows 7

Post by Crystal Noir »

On Windows7 we can install in fact DirectX 9 (we have just to download it). Then, you have in fact two dx (dx 10 + 9) after, at the same time.

My commercial games works correctly, other languages which use directx 9 like dbpro too....only pb.

Here's the code, you can download it here : http://dl.free.fr/eIF2bWSoJ

If I delete the stardrawing block, I have the same problem : black screen but no error.

All of my directx 9 app work fine except purebasic.

Here's my system spec : Windows 7 64 Home, AMD dual core 5200+, 5 Go RAM, and now Nvidia 9800 GT (I tried with my ATI radeon before, it 's the same problem).
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: PB compatibility problem Windows 7

Post by netmaestro »

I'm using Win7 32bit, your code works perfectly here, onboard video. I never installed dx9, I'm just using what came with the OS. dxdiag reports DX 11. Maybe an x64 problem only?
BERESHEIT
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Re: PB compatibility problem Windows 7

Post by rsts »

I'm runing win 7 x64, but 32 bit PB compiler. Runs fine.

You didn't mention which PB?

I'll get x64 and check it.

cheers

fine on PB x64 also.
User avatar
Blue Steel
Enthusiast
Enthusiast
Posts: 132
Joined: Wed Aug 31, 2005 4:49 pm
Contact:

Re: PB compatibility problem Windows 7

Post by Blue Steel »

I was just going to say that I've heard a lot of software doesn't work properly on the 64bit systems .. its still early days.. i can remember the big huge show stopper issies when we stepprd to from 16 bit to 32 bit. and its just the same thing all over again.. trhis is one reason why even though my cpu is 64 bit compatable why i'm still running the 32bit software including the OS's .. (especially the OS's) running win7 ultimate x86 here with PB4.4.1 no probs except when using fullscreen in multi display mode (IE: 2 monitors and extended desktop) if i drop back to single desktop everything works fine here on my ati radeon eah 3850.

In my opinion you should stick with 32bit unless you actually needc 64bit for at least the next 6 months
Currently using PureBasic 4.51(x86)

Image http://www.codingmonkeys.com
Covers many languages including PureBasic
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: PB compatibility problem Windows 7

Post by netmaestro »

In my opinion you should stick with 32bit unless you actually needc 64bit
Yep, good advice imho.
BERESHEIT
Crystal Noir
User
User
Posts: 38
Joined: Thu May 01, 2003 12:15 am

Re: PB compatibility problem Windows 7

Post by Crystal Noir »

I need of my 64 bits for my 3D softwares...:)

So I have a multi monitor configuration, I'm going to try to desactivate one.

On my pc's wife, the code run properly (she has a multi monitors configuration too...), so I don't know.

EDIT :

Got it ! This is the multi monitor configuration ! I try de desactivate the second and it's working ! It's not a 64 bits pb so...

But why my wife doesn't have this problem with ?? she has a multi monitors configuration too and it works well on her pc ? And she has the same monitors than me, and the same os (seven 64 bits).
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: PB compatibility problem Windows 7

Post by blueznl »

Same or different video cards?
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Crystal Noir
User
User
Posts: 38
Joined: Thu May 01, 2003 12:15 am

Re: PB compatibility problem Windows 7

Post by Crystal Noir »

Different.

I try with an ATI 4870 HD et now with a Nvidia Geforce 9800 GT...same problem but my wife not. We have both dualscreen with the same monitors, her and I.

But, if I turn off the second monitor on my pc that works.

So, it 's a problem with PB and my config with the dualscreen.

But why that works on my PC's wife with a dual screen too, I don't know but it's not the graphic card (we have exchanged them together).

sorry for my bad english, I hope you'll understand me lol.
Crystal Noir
User
User
Posts: 38
Joined: Thu May 01, 2003 12:15 am

Re: PB compatibility problem Windows 7

Post by Crystal Noir »

I've done a latest test : the problem doesn't appear with the 4.31 version, just the 4.41.
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Re: PB compatibility problem Windows 7

Post by Kaeru Gaman »

when testing with 4.31, enter "DirectX9" into the "Library Subsystem" field in the compiler options.
otherwise you will compile with DX7 and the result is meaningless.
oh... and have a nice day.
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: PB compatibility problem Windows 7

Post by blueznl »

Different brands of cards is a problem, try two NVidea or two ATI chipsets. I must say that on multi monitor configurations NVidia seems to behave a little better, at least as far as my experience goes...

(And no, ATI isn't that bad, especially when compared with Intel :-))
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
Kuron
Addict
Addict
Posts: 1626
Joined: Sat Oct 17, 2009 10:51 pm
Location: Pacific Northwest

Re: PB compatibility problem Windows 7

Post by Kuron »

In my opinion you should stick with 32bit unless you actually needc 64bit for at least the next 6 months
Although I agree 100%, the downside is (at least around here) with the exception of netbooks and nettops any new system on store shelves is shipping with a 64 bit version of 7.
Best wishes to the PB community. Thank you for the memories. ♥️
Crystal Noir
User
User
Posts: 38
Joined: Thu May 01, 2003 12:15 am

Re: PB compatibility problem Windows 7

Post by Crystal Noir »

the problem is not the 64 bits in this case. An other person have tested with a 32 bits system + dualscreen, he has the same problem.
Post Reply