SFML community forums
Help => General => Topic started by: Broken on May 01, 2010, 06:11:30 pm
-
Hi I have one problem, I use Pong(from tutorial source codes) as example and on my computer it works fine but on my laptop I get this message:
"This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem."
I use Visual Studio, and I put all sprites in folder where is game. So how to solve this problem.
-
Hi Broken,
I know this little error message: According to your brief description, I assume that you have installed Visual Studio only on your Desktop PC. If so, you need the Microsoft Visual C++ 2008 Redistributable Package for your laptop, which is by the way installed automatically by your Visual Studio installation. As you may not want to install the IDE on your laptop, too, you can just download the Redistributable Package and use that instead.
Microsoft Visual C++ 2008 Redistributable Package Download Link:
http://www.microsoft.com/downloads/details.aspx?FamilyID=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&displaylang=en
Bye, Eldo.
-
Ok, I install Microsoft Visual C++ 2008 Redistributable Package and I get the same message, so I install Net Framework 2.0 and nothing has't change
-
You don't the Redistributable to run your application on other computers.
Delivering the following files should be enough (you find them in the MSVC++ directory):
- msvcm90.dll
- msvcp90.dll
- msvcr90.dll
- Microsoft.VC90.CRT.manifest
Maybe, you don't even need all of them.
-
You don't the Redistributable to run your application on other computers.
Delivering the following files should be enough (you find them in the MSVC++ directory):
- msvcm90.dll
- msvcp90.dll
- msvcr90.dll
- Microsoft.VC90.CRT.manifest
Maybe, you don't even need all of them.
I try but I have the same problem. :(
-
Are you compiling in debug mode? If so you shouldn't, use the release mode to build the distributable version of your application.
-
Ok, now I compiling in Relase Mode and I get "Don't send message". How to solve this?
-
"Don't send message"? What's that??
-
Here is print screen http://i39.tinypic.com/2jb5s2q.png
-
Here is print screen http://i39.tinypic.com/2jb5s2q.png
That's because your app is crashing. It's very strange... are you sure that it is linking to the correct libraries?
I would try to download a fresh copy of the svn version of sfml and compile it.
-
Here is print screen http://i39.tinypic.com/2jb5s2q.png
That's because your app is crashing. It's very strange... are you sure that it is linking to the correct libraries?
I would try to download a fresh copy of the svn version of sfml and compile it.
Ok, I done everything what you said, and I got this.
'Pong.cpp.exe': Loaded 'F:\Documents and Settings\Valentin\My Documents\Visual Studio 2008\Projects\Pong.cpp\Release\Pong.cpp.exe', Symbols loaded.
'Pong.cpp.exe': Loaded 'F:\WINDOWS\system32\ntdll.dll'
'Pong.cpp.exe': Loaded 'F:\WINDOWS\system32\kernel32.dll'
'Pong.cpp.exe': Loaded 'F:\Documents and Settings\Valentin\My Documents\Visual Studio 2008\Projects\Pong.cpp\Release\sfml-system-d.dll'
'Pong.cpp.exe': Loaded 'F:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_f863c71f\msvcp90d.dll'
'Pong.cpp.exe': Loaded 'F:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_f863c71f\msvcr90d.dll'
'Pong.cpp.exe': Loaded 'F:\Documents and Settings\Valentin\My Documents\Visual Studio 2008\Projects\Pong.cpp\Release\sfml-graphics-d.dll'
'Pong.cpp.exe': Loaded 'F:\WINDOWS\system32\opengl32.dll'
'Pong.cpp.exe': Loaded 'F:\WINDOWS\system32\msvcrt.dll'
'Pong.cpp.exe': Loaded 'F:\WINDOWS\system32\advapi32.dll'
'Pong.cpp.exe': Loaded 'F:\WINDOWS\system32\rpcrt4.dll'
'Pong.cpp.exe': Loaded 'F:\WINDOWS\system32\secur32.dll'
'Pong.cpp.exe': Loaded 'F:\WINDOWS\system32\gdi32.dll'
'Pong.cpp.exe': Loaded 'F:\WINDOWS\system32\user32.dll'
'Pong.cpp.exe': Loaded 'F:\WINDOWS\system32\glu32.dll'
'Pong.cpp.exe': Loaded 'F:\WINDOWS\system32\ddraw.dll'
'Pong.cpp.exe': Loaded 'F:\WINDOWS\system32\dciman32.dll'
'Pong.cpp.exe': Loaded 'F:\Documents and Settings\Valentin\My Documents\Visual Studio 2008\Projects\Pong.cpp\Release\sfml-window-d.dll'
'Pong.cpp.exe': Loaded 'F:\WINDOWS\system32\winmm.dll'
'Pong.cpp.exe': Loaded 'F:\Documents and Settings\Valentin\My Documents\Visual Studio 2008\Projects\Pong.cpp\Release\sfml-audio-d.dll'
'Pong.cpp.exe': Loaded 'F:\Documents and Settings\Valentin\My Documents\Visual Studio 2008\Projects\Pong.cpp\Release\openal32.dll', Binary was not built with debug information.
'Pong.cpp.exe': Loaded 'F:\WINDOWS\system32\dsound.dll'
'Pong.cpp.exe': Loaded 'F:\WINDOWS\system32\ole32.dll'
'Pong.cpp.exe': Loaded 'F:\WINDOWS\system32\version.dll'
'Pong.cpp.exe': Loaded 'F:\Documents and Settings\Valentin\My Documents\Visual Studio 2008\Projects\Pong.cpp\Release\libsndfile-1.dll', Binary was not built with debug information.
'Pong.cpp.exe': Loaded 'F:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_6f74963e\msvcp90.dll'
'Pong.cpp.exe': Loaded 'F:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_6f74963e\msvcr90.dll'
'Pong.cpp.exe': Loaded 'F:\WINDOWS\system32\uxtheme.dll'
'Pong.cpp.exe': Loaded 'F:\WINDOWS\system32\nvoglnt.dll'
'Pong.cpp.exe': Loaded 'F:\WINDOWS\system32\mcd32.dll'
'Pong.cpp.exe': Unloaded 'F:\WINDOWS\system32\mcd32.dll'
First-chance exception at 0x7c809e22 in Pong.cpp.exe: 0xC0000005: Access violation reading location 0x6e6f5020.
A buffer overrun has occurred in Pong.cpp.exe which has corrupted the program's internal state. Press Break to debug the program or Continue to terminate the program.
For more details please see Help topic 'How to debug Buffer Overrun Issues'.
A buffer overrun has occurred in Pong.cpp.exe which has corrupted the program's internal state. Press Break to debug the program or Continue to terminate the program.
For more details please see Help topic 'How to debug Buffer Overrun Issues'.
The program '[2528] Pong.cpp.exe: Native' has exited with code -1073740791 (0xc0000409).
-
Just a hypothesis... It seems that your app crashes somewhere around loading/unloading of the OpenGL mini-driver library mcd32.dll. Maybe your laptop's graphic driver is too dated?
-
It's me again ok when I build my game in Debug mode everything works fine, but when I build in Release mode my game crashes.
So in tutorial site for Visual C++ IDE there is note "Important: for the Debug configuration, you have to link with the debug versions of the libraries, which have the "-d" suffix (sfml-system-d.lib in this case). If you don't, you may get undefined behaviours and crashes." ok but what is for Release configuration which libraries should I link.
-
ok but what is for Release configuration which libraries should I link.
Not the debug ones ;)
-
ok but what is for Release configuration which libraries should I link.
Not the debug ones ;)
hehe tnx it works now