Page 1 of 2
Exe won't run on Windows 10
Posted: Fri Sep 04, 2015 11:13 pm
by Dude
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.

Re: Exe won't run on Windows 10
Posted: Fri Sep 04, 2015 11:44 pm
by jack
may sound like a stupid question, you say that you are on 64-bit PC but is your OS 32 or 64 bit?
Re: Exe won't run on Windows 10
Posted: Fri Sep 04, 2015 11:59 pm
by IdeasVacuum
Is the exe installed on Win10? Notice that Win10 is complaining about a 64bit DLL when your 32bit app should be working with 32bit DLLs (nVidia "Capture Server Proxy").
Could it be that your friend has installed/saved the exe in Program Files? On a 64bit OS, that folder is for 64bit exe files only. Program Files x86 is for the 32bit exe files.
Re: Exe won't run on Windows 10
Posted: Sat Sep 05, 2015 1:58 am
by Dude
My OS is 64-bit. My friend installed the exe (via InnoSetup) and is running it from the equivalent of C:\App\Test.exe, not from Program Files.
Re: Exe won't run on Windows 10
Posted: Sat Sep 05, 2015 7:41 am
by heartbone
Dude wrote: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.

Is this a trick question?
I'm thinking that all you need to do is use PureBasic 5.31, 64-bit to build your executable,
but probably this is a trick question and I fell for it. Right?
Re: Exe won't run on Windows 10
Posted: Sat Sep 05, 2015 7:42 am
by Dude
Not a trick question at all. Please note that the same exe on all OS before Windows 10 worked fine, so I think it's a Win 10 issue.
Anyway, if I build it with 64-bit PureBasic, won't that stop it running on 32-bit Windows?
Re: Exe won't run on Windows 10
Posted: Sat Sep 05, 2015 10:29 am
by GPI
A 64-Bit exe can't be run on a 32-Bit os.
Maybe it would help, when you post your source code or post the exact error message.
Re: Exe won't run on Windows 10
Posted: Sat Sep 05, 2015 10:41 am
by Falko
But he write a 32-Bit-EXE with a 64-Bit-DLL on a 64-Bit-OS.
This should be correct.

Re: Exe won't run on Windows 10
Posted: Sat Sep 05, 2015 10:46 am
by IdeasVacuum
Please note that the same exe on all OS before Windows 10 worked fine, so I think it's a Win 10 issue.
Could have told us that in the first post
So, yes it looks like a Win10 issue - possibly to do with security. Given that the app has an installer, it really should be installed where Microsoft wants it to be, in Program Files x86. I would modifiy the installer script to do that, see what happens.
Re: Exe won't run on Windows 10
Posted: Sat Sep 05, 2015 11:04 am
by DontTalkToMe
Probably it has nothing to do with your program and it's a problem with Geforce Experience and Windows 10.
That error can happen executing any program.
Your friend should reinstall the nVidia crap or look for an updated version.
Also he should check if TMP and TEMP env. variables point to an actual folder.
Re: Exe won't run on Windows 10
Posted: Sat Sep 05, 2015 11:17 am
by GPI
Falko wrote:But he write a 32-Bit-EXE with a 64-Bit-DLL on a 64-Bit-OS.
This should be correct.

Äh, when you have a 32-bit-exe, the dll must be also 32-bit....
Re: Exe won't run on Windows 10
Posted: Sat Sep 05, 2015 12:08 pm
by Bisonte
GPI wrote:Falko wrote:Äh, when you have a 32-bit-exe, the dll must be also 32-bit....
Yes!
There is no way to mix !
Re: Exe won't run on Windows 10
Posted: Sat Sep 05, 2015 1:43 pm
by Falko
Sorry, my mistake

. You can run Exe be 64Bit-Os, but not run from
with 64-Bit-DLLs. These must be 32Bit-DLLs on 64Bit-OS.
Re: Exe won't run on Windows 10
Posted: Sat Sep 05, 2015 1:50 pm
by ts-soft
A 64-Bit App can use a 64-Bit DLL and no other!
A 32-Bit App can use a 32-Bit DLL and no other!
It is very simple

Re: Exe won't run on Windows 10
Posted: Sat Sep 05, 2015 2:00 pm
by Falko