32bit application compiles in 64bit mode but errors in runtime

C

Chill Pill

I have two C++ applications that was originally written for 32bit
systems using visual studio 2008 under windows xp, I am doing some
research to port these applications into 64bit machine under windows
7. So I got both code to compile with x64 configuration in visual
studio 2008, however when I try to run these programs under window 7
pro 64bit they both bombed out at loading windows dll. below is
exactly what happened in VS output window, I tried to look for this
particular problem online but there seems to be no solution to this
problem, I'd imagine this would be a common error in trying to get
32bit program compile in x64mode and running it, any help would be
appreciated.

'xxx.exe': Loaded 'C:\SVN\xxx\trunk\xxx\x64\Release\xxx.exe', Symbols
loaded.
'xxx.exe': Loaded 'C:\Windows\System32\ntdll.dll'
'xxx.exe': Loaded 'C:\Windows\System32\kernel32.dll'
'xxx.exe': Loaded 'C:\Windows\System32\KernelBase.dll'
'xxx.exe': Loaded 'C:\Windows\System32\version.dll'
'xxx.exe': Loaded 'C:\Windows\System32\msvcrt.dll'
'xxx.exe': Loaded 'C:\Windows\winsxs
\amd64_microsoft.vc90.mfc_1fc8b3b9a1e18e3b_9.0.30729.4148_none_04480933ab2137b1\mfc90.dll'
'xxx.exe': Loaded 'C:\Windows\winsxs
\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4926_none_08e1a05ba83fe554\msvcr90.dll'
'xxx.exe': Loaded 'C:\Windows\System32\user32.dll'
'xxx.exe': Loaded 'C:\Windows\System32\gdi32.dll'
'xxx.exe': Loaded 'C:\Windows\System32\lpk.dll'
'xxx.exe': Loaded 'C:\Windows\System32\usp10.dll'
'xxx.exe': Loaded 'C:\Windows\System32\shlwapi.dll'
The program '[1020] xxx.exe: Native' has exited with code -1073741701
(0xc000007b).
 
F

fallenidol

are you referencing any non .net components? if these are 32-bit then
you will get errors when they are loaded into a 64-bit process.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top