xtreampb Posted January 29, 2013 Share Posted January 29, 2013 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~ Quote 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 More sharing options...
cassius Posted January 29, 2013 Share Posted January 29, 2013 Are you compiling in debug mode? Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
klepto2 Posted January 29, 2013 Share Posted January 29, 2013 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). Quote Windows 10 Pro 64-Bit-Version NVIDIA Geforce 1080 TI Link to comment Share on other sites More sharing options...
xtreampb Posted January 30, 2013 Author Share Posted January 30, 2013 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 Quote 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 More sharing options...
xtreampb Posted January 30, 2013 Author Share Posted January 30, 2013 what is a literal i can use for this var? Quote 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 More sharing options...
Recommended Posts
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.