View unanswered posts | View active topics It is currently Thu Sep 24, 2020 11:31 pm

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

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
int line = 10/0;
. It reports an error
**Error**:Constant expression division by zero
, but doesn't prevent compilation.

Sun Jul 28, 2013 7:05 pm
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.