View unanswered posts | View active topics It is currently Mon Nov 18, 2019 5:41 pm






Reply to topic  [ 4 posts ] 
RobotC 4.27 VEX Modulo Bug 
Author Message
Rookie
User avatar

Joined: Fri Aug 24, 2012 8:28 pm
Posts: 6
Post RobotC 4.27 VEX Modulo Bug
Hello, I found the following bugs (and has been reproduced by several users)

The following code crashes RobotC 4.27 VEX when compiled

Code:
task main()
{
  int x = 5%0;
}


The following code crashes at runtime on the RobotC 4.27 Vex Emulator.

Code:
task main()
{
  int y = 0;
  int x = 5%y;
}


My computer is running Windows 8 64-bit. If any other information is needed, let me know.


Mon Feb 02, 2015 9:56 pm
Profile
Professor
User avatar

Joined: Sat Aug 31, 2013 9:15 am
Posts: 256
Post Re: RobotC 4.27 VEX Modulo Bug
Well, you are trying to do an operation involving division by zero, so I would expect some issues....

_________________
FTC Team 6100 Chariots of Fire - Programmer (2012-2013)
FTC Team 7468 Blue Chariots of Fire - Programmer (2013-2014)
FTC Team 7468 Blue Chariots of Fire - Mentor (2014-2015)
Check out our team website at http://bluechariotsoffire.com/.


Tue Feb 03, 2015 10:44 pm
Profile
Site Admin
Site Admin
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3654
Location: Rotterdam, The Netherlands
Post Re: RobotC 4.27 VEX Modulo Bug
If you do this too often, you risk opening a worm hole to the N-dimension. Division by 0 is no joke.

= Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Thu Feb 05, 2015 4:23 am
Profile WWW
Site Admin
Site Admin
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3654
Location: Rotterdam, The Netherlands
Post Re: RobotC 4.27 VEX Modulo Bug
The %0 thing has been logged as a bug :)

= Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Thu Feb 05, 2015 6:50 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

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.