Hi, I get this error when I try to debug: 'Unhandled exception at 0x7c812a5b in DarkStrike.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x0013fcc4..'.
If I click Continue I get: 'DarkStrike.exe has triggered a breakpoint'.
If I click it for a final time I get: 'DarkStrike.exe has triggered a breakpoint'.
Here's my code:
#include "DarkAI.h"
#include "DarkGDK.h"
#include "DarkLights.h"
#include "DarkPhysics.h"
#include "EnhancedAnimations.h"
#include "EZrotate.h"
#include "ShaderData.h"
// the main entry point for the application is this function
void DarkGDK(void)
{
// turn on sync rate and set maximum rate to 60 fps
dbSyncOn();
dbSyncRate(60);
dbLoadObject( "media/ai.x", 1 );
dbYRotateObject( 1, 180 );
dbFixObjectPivot( 1 );
dbLoadImage( "media/ai_D2.DDS", 1 );
dbTextureObject( 1, 1 );
EnAn_SetDefaultPlaySpeed( 15.0f );
DWORD PoseAnim = EnAn_AnimLoad("Pose.anim");
DWORD WalkAnim = EnAn_AnimLoad("Walk.anim");
DWORD RunAnim = EnAn_AnimLoad("Run.anim");
DWORD oacID = EnAn_oacCreate( 1 );
EnAn_oacPlayAnim( oacID, 1, WalkAnim, 1, 1, -1, 1, 0 );
DWORD time = dbTimer();
DWORD elapsedTime = 0;
// our main loop
while (LoopGDK())
{
elapsedTime = dbTimer() - time;
time = dbTimer();
EnAn_oacUpdate( oacID, elapsedTime );
// update the screen
dbSync();
}
// return back to windows
return;
}
Anyone have a idea how to solve this?
Thanks.