View Single Post
  #4   Spotlight this post!  
Unread Today, 11:40
bob.wolff68's Avatar
bob.wolff68 bob.wolff68 is offline
Da' Mentor Man
FRC #1967
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2007
Location: United States
Posts: 164
bob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nice
Re: Deploy Successful, Rio said "No Robot Code"

Indeed 'no robot code' is almost always an indicator that your program crashed on the roboRio. Finding crashes can be frustrating. Suggestions:
- Inspect the code for using a pointer which you have not yet done a 'new' on and so it is invalid or NULL.
- Use printf() statements to see when you've reached certain parts of the code. This can be helpful but can also be troublesome as sometimes printf output doesn't reach the console over the network before the crash occurs. Beware.
- The BEST answer is to use the debugger. It's daunting at first, but an EXCELLENT method. use "Debug As" instead of "Run As" - once in the debugger, you can 'go' to run the code and typically the debugger will HALT at the line where the crash occurred and you're all set. Woohoo! (Your mileage may vary)

bob
__________________
~~~~~~~~~~~~~~~~~~~
Bob Wolff - Software from the old-school
Mentor / C / C++ guy
Team 1967 - The Janksters - San Jose, CA
Reply With Quote