View unanswered posts | View active topics It is currently Thu Aug 28, 2014 11:32 pm






Reply to topic  [ 2 posts ] 
debugWriteLine + NULL 
Author Message
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3196
Location: Rotterdam, The Netherlands
Post debugWriteLine + NULL
Don't have access to my botbench.com mail (I am in the office), so just putting it in here:
This code will crash ROBOTC completely when running it in an emulator mode. I used the NXT platform in this case.

Code:
task main()
{
  writeDebugStreamLine("%d", NULL);
}

Why would I even do that? No idea, I was just playing with some code for a tutorial and it so happened something I printed was NULL. This is just the simplest demo case :)

- 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 Nov 15, 2012 2:32 am
Profile WWW
Expert
User avatar

Joined: Fri Nov 02, 2012 12:07 am
Posts: 164
Location: California, USA
Post Re: debugWriteLine + NULL
Interesting... :? :shock: any clues as to why? :|

_________________
string Robored = "Awesome"
~~Neil Balch~~


Thu Oct 24, 2013 11:35 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 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.