Initsprite not work anymore on my pc

Everything else that doesn't fall into one of the other PB categories.
ALAN-MHz
User
User
Posts: 68
Joined: Fri Jul 29, 2005 11:47 am

Initsprite not work anymore on my pc

Post by ALAN-MHz »

Dear all, i've a windows 7 x64 installation, from some days the command initsprite fail without any reason, how i can debug and solve the problem ? i've some personal purebasic application that does not work anymore! i try to reinstall directx package but this does not solve the problem, please help me! Thanks!
User avatar
Mijikai
Addict
Addict
Posts: 1360
Joined: Sun Sep 11, 2016 2:17 pm

Re: Initsprite not work anymore on my pc

Post by Mijikai »

Sounds like a driver issue.
Try it with OpenGL as Subsystem.
User avatar
mk-soft
Always Here
Always Here
Posts: 5335
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Initsprite not work anymore on my pc

Post by mk-soft »

Sometimes the same problem and i use subsystem OpenGL too
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
dige
Addict
Addict
Posts: 1247
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Re: Initsprite not work anymore on my pc

Post by dige »

.
Last edited by dige on Wed Jun 26, 2019 6:59 am, edited 1 time in total.
"Daddy, I'll run faster, then it is not so far..."
ALAN-MHz
User
User
Posts: 68
Joined: Fri Jul 29, 2005 11:47 am

Re: Initsprite not work anymore on my pc

Post by ALAN-MHz »

on this pc works until latest windows updates, i notice also a strange thing, if i run dxdiag the first time tell me that test are in x86 subsystem and i can switch to x64 subsystem also, the dxdiag tell that in x86 subsystem directx does not work, instead works on x64 subsystem, what the hell ?
ALAN-MHz
User
User
Posts: 68
Joined: Fri Jul 29, 2005 11:47 am

Re: Initsprite not work anymore on my pc

Post by ALAN-MHz »

Just a little update, i've done this test, creating 2 executable with purebasic x86 and purebasic x64, that return in messagerequester the result of initsprite command.

x86 return 0
x64 return 1

that is the exact result that i see in dxdiag, now on some forum users write that x86 directx subsystem need to be enabled manually, but dxdiag does not have any option like this, and some weeks ago x86 directx subsystem does not have this problem on this pc, anyone can help me to solve this problem ?
applePi
Addict
Addict
Posts: 1404
Joined: Sun Jun 25, 2006 7:28 pm

Re: Initsprite not work anymore on my pc

Post by applePi »

i suggest to download the full DX9 year 2010 directly from microsoft (98MB)
http://download.microsoft.com/download/ ... redist.exe
then extract the files somewhere
i have noticed half of the files is for x86 and the others for x64 like this
Aug2009_d3dx10_42_x86
Aug2009_d3dx10_42_x64

then run DXSETUP.exe to install dx9. i suggest to disable the web access during the offline install we don't know what micrsoft does when you are online.

then try first one of the purebasic examples which are using InitSprite()
tell us what happened
if that does not work, i remember in the past when i have installed DX9 year 2007 version have cured the problem on windows 7 but now i am preferring to use windows xp/32
the DX9 nov. 2007 can be downloaded from (64MB)
http://filehippo.com/download_directx/3345/
after installing this reinstall DX9 year 2010 over it
Bitblazer
Enthusiast
Enthusiast
Posts: 733
Joined: Mon Apr 10, 2017 6:17 pm
Location: Germany
Contact:

Re: Initsprite not work anymore on my pc

Post by Bitblazer »

I am running win7x64 on one machine too. If you supply a basic complete source example that doesnt work on your machine, i will try to get it to work on mine and see if/where it breaks so you know what to fix :)

Keep it as simple as possible - that also means : use a 64bit compiler and resulting binaries, because a 32bit executable would require the whole WOW64 overhead.

I just tried both 2d sprite examples from the PureBasic manual on my windows7 x64 machine and both worked without any problems with OpenGL.

When i explicitly selected the DirectX11 subsystem with the sprite.pb example, InitSprite() actually fails, but i never manually installed any directx support on the machine plus i used the x86 compiler.
webpage - discord chat links -> purebasic GPT4All
Post Reply