Jump to content

Recommended Posts

Posted

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!

Posted

Could it be that your PC is is turned on for a long time? If yes, that may be the reason as AppSpeed is calculated through the pc timings and this will overflow and turn negative after a while (multiple days).

  • Windows 10 Pro 64-Bit-Version
  • NVIDIA Geforce 1080 TI
Posted

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!

Posted

what is a literal i can use for this var?

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!

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.

×
×
  • Create New...