View unanswered posts | View active topics It is currently Tue Nov 12, 2019 8:09 pm






Reply to topic  [ 3 posts ] 
Exception Type: 'Invalid 'sprintf' format specification(72)' 
Author Message
Rookie

Joined: Mon Dec 15, 2014 12:46 am
Posts: 19
Post Exception Type: 'Invalid 'sprintf' format specification(72)'
Hello,
I am the head program for the FTC team The Synergists. Normally I would go to my mentor with software questions, however, we are on break and this error seems internal. See below for code, picture of error, and screenshot of screen without the error after I click cancel.

The weird thing is that if I comment out line 80, the program behaves as expected.

I am using RobotC 3.62, NXT 2.0 and a Windows 7 Laptop. Let me know if there is any other information you need to know for debugging. Thank you for your help in advance!


Head Programmer for FTC Team, The Synergists


Attachments:
03 Details Program 121414.c [4.1 KiB]
Downloaded 352 times
RobotC Question - Error Pic.JPG
RobotC Question - Error Pic.JPG [ 23.61 KiB | Viewed 5321 times ]
RobotC Question - Full Screen Screenshot.JPG
RobotC Question - Full Screen Screenshot.JPG [ 139.37 KiB | Viewed 5321 times ]

_________________
FTC 7104 - The Synergists
Mon Dec 15, 2014 1:27 am
Profile
Professor
User avatar

Joined: Sat Aug 31, 2013 9:15 am
Posts: 256
Post Re: Exception Type: 'Invalid 'sprintf' format specification(
On line 80, you got your format string mixed up. It has "s%" instead of "%s." I think that might be why it's shouting at you.... :wink:

_________________
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/.


Mon Dec 15, 2014 11:38 am
Profile
Rookie

Joined: Mon Dec 15, 2014 12:46 am
Posts: 19
Post Re: Exception Type: 'Invalid 'sprintf' format specification(
Oh wow. Thanks! It works perfectly now!

_________________
FTC 7104 - The Synergists


Mon Dec 15, 2014 11:52 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 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.