Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm trying to port an SDI application that runs fine under Windows 2003 Server to Windows 2008 Server on a 64-bit platform. The application crashes inside the Microsoft Foundation Classes (MFC) as a result of the application's InitInstance method's mandatory call to ProcessShellCommand. As deep as I've probed it, the crash appears to result from the attempt to create a new FrameWindow.

Does anyone have any experience with this sort of problem? Is there an update to Visual Studio .NET 2010 that addresses it?

Thanks in advance.

All my best,
Fran Porretto
Posted
Comments
Sergey Alexandrovich Kryukov 27-Jun-13 13:50pm    
Are you sure this is the same 64-bit platform? There are two incompatible ones: x86-64 and IE64 (Itanium)...
—SA
Fran Porretto 27-Jun-13 13:52pm    
Hm, I don't know. (Just in case I worded my question confusingly, the Win2003 Server environment from which the app is being ported is 32-bit, NOT 64-bit.) How would I check that?
Sergey Alexandrovich Kryukov 27-Jun-13 13:55pm    
Yes, if the target platform is 32-bit, the application is compatible with all 64-bit architectures. You should have mentioned that. But in this case — not enough information.
—SA

1 solution

Please see my comments to the question. We don't have enough information to resolve the problem, but:

You should understand that, on all contemporary Windows platforms, x86 (32-bit) application can be executed on WoW64, no matter what is the CPU instruction-set architecture. Please see:
http://en.wikipedia.org/wiki/WoW64[^],
http://en.wikipedia.org/wiki/Instruction_set[^],
http://en.wikipedia.org/wiki/X86[^],
http://en.wikipedia.org/wiki/X86-64[^].
http://en.wikipedia.org/wiki/Itanium[^].

You should always know the CPU instruction-set architecture on the system you are working with. To learn the architecture used on Windows, go to Control Panel, System, Environment variables, see the variable PROCESSOR_ARCHITECTURE.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900