I have been working on a project for a couple of weeks now, and I am plagued by the same problem...
Often when I run the project in debug I get the following message
Unhandled exception at 0x7c91b21a in game.exe: 0xC0000005: Access violation writing location 0x30303040.
Strange thing about this is I place a break point on the first executable line in the main.cpp and the error occurs before the break point...
#include "DarkGDK.h"
#include "RGame.h"
#include "constants.h"
#include "RCharacter.h"
#include <DarkPhysics.h>
#include "RMenuManager.h"
// Forward declarations
void UserUpdate(int contid);
// the main entry point for the application is this function
void DarkGDK ( void )
{
string logmsg;
In the code above I placed the break point on the "string logmsg;" line and the error occurs before the break point... I can run the project a couple of times then it will launch without a problem... and run fine... but then I will change the code, recompile, even do a clean and rebuild, but I still get the error... and again after a few attempts it will clear... I belive that something is not getting correctly generated in my projects which is causing the issue... or the memory is not being release from a previous run...
Any thoughts on what could be the issue, I am using VC++ 2008.