
Exe won't run on Windows 10
Exe won't run on Windows 10
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
may sound like a stupid question, you say that you are on 64-bit PC but is your OS 32 or 64 bit?
-
- Always Here
- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: Exe won't run on Windows 10
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.
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.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
Re: Exe won't run on Windows 10
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
Is this a trick question?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.
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?
Keep it BASIC.
Re: Exe won't run on Windows 10
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?
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
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.
Maybe it would help, when you post your source code or post the exact error message.
Re: Exe won't run on Windows 10
But he write a 32-Bit-EXE with a 64-Bit-DLL on a 64-Bit-OS.
This should be correct.
This should be correct.

-
- Always Here
- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: Exe won't run on Windows 10
Could have told us that in the first postPlease note that the same exe on all OS before Windows 10 worked fine, so I think it's a Win 10 issue.

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.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
-
- Enthusiast
- Posts: 334
- Joined: Mon Feb 04, 2013 5:28 pm
Re: Exe won't run on Windows 10
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.
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
Äh, when you have a 32-bit-exe, the dll must be also 32-bit....Falko wrote: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
Yes!GPI wrote:Falko wrote:Äh, when you have a 32-bit-exe, the dll must be also 32-bit....
There is no way to mix !
Re: Exe won't run on Windows 10
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.

with 64-Bit-DLLs. These must be 32Bit-DLLs on 64Bit-OS.
Re: Exe won't run on Windows 10
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
A 32-Bit App can use a 32-Bit DLL and no other!
It is very simple

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.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
