Jump to content

LE update step size incorrect


xtreampb
 Share

Recommended Posts

so i'm coding doing my thing. squashing bugs as can you probably see when all of a sudden i get this error...

Unhandled exception at 0x00a5eb16 in Castle Defense-Debug.exe: 0xC0000005: Access violation reading location 0x061e4e58.

 

what makes this hard is that this breaks in the engine.cpp file at this function


void UpdateWorld(float stepsize)
{
leUpdateWorld(stepsize);
}

 

i trace the stack to this function call

UpdateWorld(AppSpeed()) ;

 

i have made no changes anywhere near this line of code. So why is it all of a sudden complaining.

the stepsize that i have when i break is approx 1.1752819 +/- 0.03

 

Suggestions greatly appriciated

 

~Xtreampb~

bool Life()
{
 while(death=false)
 {
   if(death==true)
   return death;
 }
}

 

I have found the secret to infinite life

 

Did I help you out? Like my post!

Link to comment
Share on other sites

nope my PC is running constantly and has been on for a while. an appspeed is a positive value as stated in my original post. @cassius it throws the error in debug, and release configurations

bool Life()
{
 while(death=false)
 {
   if(death==true)
   return death;
 }
}

 

I have found the secret to infinite life

 

Did I help you out? Like my post!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...