Exe won't run on Windows 10

Just starting out? Need help? Post your questions and find answers here.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Exe won't run on Windows 10

Post by ts-soft »

And Driver on 64-Bit OS have to use 64-Bit only!
Driver on 32-Bit OS have to use 32-Bit only!
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
Falko
Enthusiast
Enthusiast
Posts: 271
Joined: Sat Oct 04, 2003 12:57 pm
Location: Germany
Contact:

Re: Exe won't run on Windows 10

Post by Falko »

www.falko-pure.de
Win11 Pro 64-Bit, PB_6.11b1
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: Exe won't run on Windows 10

Post by Dude »

Hang on: none of this makes sense. I've always read that a 32-bit exe will run on both 32-bit OSes and 64-bit, due to 32-bit emulation on 64-bit. Therefore, I've always coded with 5.31 32-bit PureBasic on my 64-bit Windows 7 OS. When I build an exe that way, it's always run fine on 32-bit Windows XP, and also always run fine on 64-bit Windows 7.

But now, that same exe won't run on Windows 10. Why not?
User avatar
Bisonte
Addict
Addict
Posts: 1313
Joined: Tue Oct 09, 2007 2:15 am

Re: Exe won't run on Windows 10

Post by Bisonte »

Not the *.exe is the problem. It's the *.dll

You don't have to mix x86 and x64.... :!:
PureBasic 6.21 (Windows x64) | Windows 11 Pro | AsRock B850 Steel Legend Wifi | R7 9800x3D | 64GB RAM | RTX 5080 | ThermaltakeView 270 TG ARGB | build by vannicom​​
English is not my native language... (I often use DeepL.)
User avatar
heartbone
Addict
Addict
Posts: 1058
Joined: Fri Apr 12, 2013 1:55 pm
Location: just outside of Ferguson

Re: Exe won't run on Windows 10

Post by heartbone »

I'm using PureBasic 5.31, 32-bit, on a 64-bit PC running Windows 7 Ultimate. When I build an exe and send it to a friend running Windows 10, 64-bit, the exe throws up this error. Any suggestions on how to resolve this? Thank you.
I believe I answered your original question, perfectly.
Dude wrote:Hang on: none of this makes sense. I've always read that a 32-bit exe will run on both 32-bit OSes and 64-bit, due to 32-bit emulation on 64-bit. Therefore, I've always coded with 5.31 32-bit PureBasic on my 64-bit Windows 7 OS. When I build an exe that way, it's always run fine on 32-bit Windows XP, and also always run fine on 64-bit Windows 7.

But now, that same exe won't run on Windows 10. Why not?
But now what you are asking is way out of my league. :|
Good luck. :mrgreen:
Keep it BASIC.
DontTalkToMe
Enthusiast
Enthusiast
Posts: 334
Joined: Mon Feb 04, 2013 5:28 pm

Re: Exe won't run on Windows 10

Post by DontTalkToMe »

Both the factions here need an interpreter, and you a pair of glasses.

You are telling you compiled a 32 bit exe which is not running on your friend computer, on Win 10.

The others (excluding myself) saw a 64 bit DLL and are talking as if you were calling it from your 32 bit exe.

The points here are:

It's not working on your friend's Win 10, not on Win 10 in general.

The 64 bit DLL is from nVidia's Geforce Experience and it's trying to start not because your program is invoking it.

Does your program use OpenScreen() ?

In any case as is said before, based on what you told us (so almost nothing) the problem is probably a corrupted or bugged Geforce Experience installation of your friend computer.

He can fix it, remove it, upgrade it or try to disable some of the nVidia services while trying your exe to see which one is responsible, or google about the message in the messagebox and try the suggested fixes.
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: Exe won't run on Windows 10

Post by Dude »

DontTalkToMe wrote:Does your program use OpenScreen() ?
No, but it does create a fullscreen window that copies another window's image with bitblt. I emailed my friend and told him to try reinstalling or updating GeForce Experience. Thanks to everyone that replied.
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Re: Exe won't run on Windows 10

Post by Danilo »

Dude wrote:Image
It's very unlikely that 'system32' contains a 64-bit DLL. It's just a file name, and it seems it has to do
with Nvidia Audio stuff. Actually the file is missing, so why do some people think you try to call a 64-bit DLL?
DontTalkToMe
Enthusiast
Enthusiast
Posts: 334
Joined: Mon Feb 04, 2013 5:28 pm

Re: Exe won't run on Windows 10

Post by DontTalkToMe »

Danilo wrote:and it seems it has to do with Nvidia Audio stuff
nvspcap64.dll ==> NVidiaShadowPlayCAPture

See ShadowPlay

Currently all the nVidia Geforce Experience software (bundled with the driver) is crapware, it's the thirst thing I deselect when installing a nVidia driver. Unless you desperately need it and you can't replace it with comparable software, my suggestion is to avoid it.
PureGuy
Enthusiast
Enthusiast
Posts: 102
Joined: Mon Aug 30, 2010 11:51 am

Re: Exe won't run on Windows 10

Post by PureGuy »

There are two dll's on my Windows 7 x64.

nvspcap.dll (in \Windows\SysWow64)
nvspcap64.dll (in \Windows\System32)

If he want's to compile his program as x86, than he should load the first one.
DontTalkToMe
Enthusiast
Enthusiast
Posts: 334
Joined: Mon Feb 04, 2013 5:28 pm

Re: Exe won't run on Windows 10

Post by DontTalkToMe »

:-O
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

Re: Exe won't run on Windows 10

Post by jack »

perhaps it's already mentioned, on 64-bit windows the 64-bit dll's are stored in windows/system32 and the 32-bit dll's are stored in Syswow64
Post Reply