Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: What is wrong?  (Read 8033 times)

0 Members and 1 Guest are viewing this topic.

Broken

  • Newbie
  • *
  • Posts: 26
    • View Profile
What is wrong?
« 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.

VanEldo

  • Newbie
  • *
  • Posts: 12
    • View Profile
What is wrong?
« Reply #1 on: May 01, 2010, 06:33:02 pm »
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.

Broken

  • Newbie
  • *
  • Posts: 26
    • View Profile
What is wrong?
« Reply #2 on: May 01, 2010, 09:39:01 pm »
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

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
What is wrong?
« Reply #3 on: May 01, 2010, 10:14:26 pm »
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.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Broken

  • Newbie
  • *
  • Posts: 26
    • View Profile
What is wrong?
« Reply #4 on: May 01, 2010, 11:21:54 pm »
Quote from: "Nexus"
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. :(

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
What is wrong?
« Reply #5 on: May 02, 2010, 12:44:10 am »
Are you compiling in debug mode? If so you shouldn't, use the release mode to build the distributable version of your application.
Laurent Gomila - SFML developer

Broken

  • Newbie
  • *
  • Posts: 26
    • View Profile
What is wrong?
« Reply #6 on: May 02, 2010, 06:51:12 pm »
Ok, now I compiling in Relase Mode and I get "Don't send message". How to solve this?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
What is wrong?
« Reply #7 on: May 02, 2010, 07:46:23 pm »
"Don't send message"? What's that??
Laurent Gomila - SFML developer

Broken

  • Newbie
  • *
  • Posts: 26
    • View Profile
What is wrong?
« Reply #8 on: May 02, 2010, 08:47:00 pm »

panithadrum

  • Sr. Member
  • ****
  • Posts: 304
    • View Profile
    • Skyrpex@Github
    • Email
What is wrong?
« Reply #9 on: May 02, 2010, 09:03:39 pm »
Quote from: "Broken"
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.

Broken

  • Newbie
  • *
  • Posts: 26
    • View Profile
What is wrong?
« Reply #10 on: May 06, 2010, 02:25:53 pm »
Quote from: "panithadrum"
Quote from: "Broken"
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.

Code: [Select]
'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).

dunce

  • Jr. Member
  • **
  • Posts: 77
    • View Profile
What is wrong?
« Reply #11 on: May 07, 2010, 09:26:16 am »
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?

Broken

  • Newbie
  • *
  • Posts: 26
    • View Profile
What is wrong?
« Reply #12 on: May 15, 2010, 10:08:21 pm »
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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
What is wrong?
« Reply #13 on: May 16, 2010, 09:36:40 am »
Quote
ok but what is for Release configuration which libraries should I link.

Not the debug ones ;)
Laurent Gomila - SFML developer

Broken

  • Newbie
  • *
  • Posts: 26
    • View Profile
What is wrong?
« Reply #14 on: May 16, 2010, 02:27:21 pm »
Quote from: "Laurent"
Quote
ok but what is for Release configuration which libraries should I link.

Not the debug ones ;)

hehe tnx it works now