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

Author Topic: Release mode stand alone build?  (Read 4265 times)

0 Members and 1 Guest are viewing this topic.

acidsEcho

  • Newbie
  • *
  • Posts: 5
    • View Profile
Release mode stand alone build?
« on: August 09, 2010, 11:29:02 pm »
I have a project in the works am using the AQtime profiler to monitor performance and memory usage. My problem is that AQtime launches the compiled EXE from the output directory instead of actively monitoring the debug instance.

That would be OK, except the generated .exe's fail at start up. I have tried debug and release mode. Both build error free and run instances through visual studio, but when I try to start their executables from the output directory they crash instantly.

my linkers for release mode are:
sfml-system-s.lib sfml-graphics-s.lib sfml-window-s.lib sfml-audio-s.lib
and my preprocessor definitions are:
SFML-DYNAMIC;WIN32;NDEBUG;_CONSOLE
All of the libraries have been placed in the release output folder. Like I said, it builds fine when an instance is run through VS2008.

my linkers for debug are:
sfml-system-d.lib sfml-graphics-d.lib sfml-window-d.lib sfml-audio-d.lib
Again, runs great through VS, but not on its own.

Here is the information that AQtime is giving me at when the crash occurs with both Debug and Release .exe's:

Code: [Select]

First chance exception 0xC0000005 ACCESS_VIOLATION occurred at 0x77A5FC47, write of address 0x00000014 at 0x77A5FC47 (in C:\Windows\System32\ntdll.dll)
-      0x77A5FC47 iswdigit + 0x2A2 in ntdll.dll
-      0x77A5FB56 iswdigit + 0x1B1 in ntdll.dll
-      0x64DCAF92 wglSwapMultipleBuffers + 0xCE5 in opengl32.dll
-      0x64DCB1A9 wglSwapMultipleBuffers + 0xEFC in opengl32.dll
-      0x64DCC6A4 wglGetProcAddress + 0x45F in opengl32.dll
-      0x64DD5658 wglGetPixelFormat + 0x70 in opengl32.dll
-      0x64DD5DD4 wglDescribePixelFormat + 0xA2 in opengl32.dll
-      0x64DD6559 wglChoosePixelFormat + 0x3E in opengl32.dll
-      0x774D6805 ChoosePixelFormat + 0x28 in gdi32.dll
-      0x0024A2CE sf::WindowListener::operator= + 0x8658 in sfml-window-d.dll


Code: [Select]

Second chance exception 0xC0000005 ACCESS_VIOLATION occurred at 0x77A5FC47, write of address 0x00000014 at 0x77A5FC47 (in C:\Windows\System32\ntdll.dll)


Anyone have any idea whats going on here?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Release mode stand alone build?
« Reply #1 on: August 10, 2010, 08:33:31 am »
Are you sure that the working directory is ok?
Laurent Gomila - SFML developer

dunce

  • Jr. Member
  • **
  • Posts: 77
    • View Profile
Release mode stand alone build?
« Reply #2 on: August 10, 2010, 09:12:48 am »
Quote
my linkers for release mode are:
sfml-system-s.lib sfml-graphics-s.lib sfml-window-s.lib sfml-audio-s.lib
and my preprocessor definitions are:
SFML-DYNAMIC;WIN32;NDEBUG;_CONSOLE


It seems that you are linking to static libraries but have SFML-DYNAMIC defined.

acidsEcho

  • Newbie
  • *
  • Posts: 5
    • View Profile
Release mode stand alone build?
« Reply #3 on: August 10, 2010, 10:16:19 pm »
Yeah, I tried both static and dynamic to the same result. But I discovered my problem. The assets and XML I am using are in the project directory, but the solution outputs the exe's to their own directory. If I copy art, music and xml to the debug and release folders then it works fine.

For some reason all those DLL and openGL exceptions had me thinking I had a much more complicated problem than that.