Running Application Featuring SFML with Visual Studio

I made a Roguelike game with SFML in Microsoft Visual Studio 2010 and got it to compile fine in both configurations. However, when I run it in Debug mode in either, I get an error message.
Debug says:
This Application has failed to start because the Application configuration is incorrect. Review the manifest file for possible errors. Reinstalling the Application may fix the problem (yea right :roll.For more details, please see the application event log

That's with Debug on. Off, the thing just crashes.
Here's release:
Unhandled exception at 0x766c1ca4 in Simple Rogue.exe: 0xC0000005: Access violation reading location 0x00000002.
Break Continue Ignore

I am forced to break, and here's the odd line of code in some .c file causing problems:
1
2
3
4
5
  if (__native_startup_state == __initializing)
            {
                _initterm( __xc_a, __xc_z );//this one
                __native_startup_state = __initialized;
            }
Also, I need to recompile every time I try to run in Debug Config for some reason... Any help would be greatly appreciated.
Did you try going up the call stack until you got to a function you recognized and looking at the variables?
Topic archived. No new replies allowed.