Windows 7 to Windows XP crrash
Hi,
I develop a software on a windows 7 (ultimate) 64bits machine with VS2005. I compiled this software in release mode and I transfer executable and all dll on a windows XP 32 bits virtual machine running on the developpment machine. The program crash just after starting without special error. I did a test by creating a very simple program (hello world program) and I have exactly the same problem.
Re: Windows 7 to Windows XP crrash
Are you tryin to execute a 64bit app in a 32bit OS?
If not check Windows Event Viewer. You shoud see some winSxS missing references.
The CRT libraries are missing on the XP machine. Download and install Visual C++ 2005 Redistributable or link statically to these libraries.
Re: Windows 7 to Windows XP crrash
The soft is develop on a 64bits machine but compiled with a 32bits compiler
Re: Windows 7 to Windows XP crrash
It is difficult to link static because my program use QT and OSG. It is a lot of libraries to link. I have installed Visual C++ 2005 redistribuable package on the virtual XP machine. For my simple command line program it is working but it never work for my real program with QT and OSG. I also to to create an installer with studio but no more results.
Re: Windows 7 to Windows XP crrash
When you get diffeences between debug mode and release mode usually your first port of call is
Change your project settings to not use the runtime library. (Project Properties -> C/C++ -> Code Generation -> Runtime Library -> use/MT or /MTd depends on your current configuration.)
What you will now see is if you have a side-by-side issue (it usually now spits a dialog box up on screen) and if neccessary you can use sxstrace.exe.
This article may help http://www.codeproject.com/KB/winsdk...sideerror.aspx
I realize you have two different machines but it is probably a good start because its crashing just after start which is when this error rears its head.