VS2008 portability problem
-
- Posts: 53
- Joined: Sun Aug 31, 2008 3:16 pm
- Location: Split, Croatia
VS2008 portability problem
I have a problem with a game I made in IrrLicht and compiled it under VS2008 Visual C++ (Win32 Con App - Empty Project).
It runs on my laptop perfectly but on any other computers, after executing the EXE, I get an error:
"This application has failed to start because application configuration is incorrect. Reinstalling the application may fix the problem."
... or ...
"application failed to start because side-by-side scripting
configuration is incorrect." - this is on Vista SP1 and XP SP2.
The funny thing is that I compiled the same code on VS2003 Visual C++ (Win32 Con App - Empty Project) and it runs anywhere without a problem.
I checked and rechecked the paths and DLL but I use the same in both VS's.
Anybody had this problem? And solved it maybe?
VS2008 is very user friendly so I'd like to work in it, if this issue get's solved.
It runs on my laptop perfectly but on any other computers, after executing the EXE, I get an error:
"This application has failed to start because application configuration is incorrect. Reinstalling the application may fix the problem."
... or ...
"application failed to start because side-by-side scripting
configuration is incorrect." - this is on Vista SP1 and XP SP2.
The funny thing is that I compiled the same code on VS2003 Visual C++ (Win32 Con App - Empty Project) and it runs anywhere without a problem.
I checked and rechecked the paths and DLL but I use the same in both VS's.
Anybody had this problem? And solved it maybe?
VS2008 is very user friendly so I'd like to work in it, if this issue get's solved.
What now??? =_=''
-
- Posts: 53
- Joined: Sun Aug 31, 2008 3:16 pm
- Location: Split, Croatia
-
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
I'd recommend reading this page.
You can distribute the vcredist with your app, the same way you'd include the DirectX redistributables. It's only 1.7MB.
You can distribute the vcredist with your app, the same way you'd include the DirectX redistributables. It's only 1.7MB.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
-
- Posts: 53
- Joined: Sun Aug 31, 2008 3:16 pm
- Location: Split, Croatia
-
- Posts: 368
- Joined: Tue Aug 21, 2007 1:43 am
- Location: The Middle of Nowhere
I believe the situation is the application is not managed, but the MSVCRT runtime for 2008 isn't already installed.Dark_Kilauea wrote:It is possible to turn off the managed library support in 2005 and later for C++ projects. The option is buried somewhere deep inside the options area though.
In that case, many people just don't care and include MSVCRT against it's license, directly with the application with no installer. You may also be able to automate the installation of Microsoft's installer, but that would skip the EULA and probably also be against the license.
If it's a really small distribution I seriously doubt anybody will care if you distribute the DLLs alongside the application. The DLL-Files.com website includes DLLs against their licenses all the time, And nothing has happened to them yet.
-
- Posts: 368
- Joined: Tue Aug 21, 2007 1:43 am
- Location: The Middle of Nowhere
No, and no. You're wrong on both accounts. It is not managed code, and it is not microsofts way of cleaning up after crashes.Dark_Kilauea wrote:The MSVCRT runtime is a managed code runtime for C++/C code. It's Microsoft's way of cleaning up after a program if it crashes and leaves allocated memory all over the place.
The MSVCRT is the C RunTime library for Microsoft compilers. It is the same as libc.so that you would find on most Unix platforms. It is a shared library that contains definitions for standard C and C++ functions that are provided by the implementation. There are also a few symbols in there, but those are not a concern for most users.
Travis
-
- Posts: 368
- Joined: Tue Aug 21, 2007 1:43 am
- Location: The Middle of Nowhere
http://www.kalmbach-software.de/screenc ... icLinkCRT/
Static Link CRT
Static Link CRT
Using the static library in a program that links to a dll (the Irrlicht.dll) is asking for trouble. The static library and the dll will maintain seperate copies of static data, and that can cause heap corruption, unexpected behavior, and crashes.
This is the cause of crashes that occur when using the texture matrix on Windows systems.
Travis
This is the cause of crashes that occur when using the texture matrix on Windows systems.
Travis