View unanswered posts | View active topics It is currently Thu Nov 27, 2014 7:46 pm






Reply to topic  [ 1 post ] 
[Bug] Divide by Zero Crash 
Author Message
Rookie

Joined: Tue Dec 04, 2012 4:49 pm
Posts: 3
Post [Bug] Divide by Zero Crash
I recently ran into a bug with the ROBOTC compiler where dividing by zero does not prevent compilation and downloading. As a result, ROBOTC crashes. Also, when using joystick values in trigonometry functions and they are at zero, ROBOTC crashes then as well. I thought I should make you guys aware of these bugs. I can (and should've) worked around the trig issue, but dividing by zero does not create issues. The line I tested was
Code:
int line = 10/0;
. It reports an error
Quote:
**Error**:Constant expression division by zero
, but doesn't prevent compilation.


Sun Jul 28, 2013 7:05 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.