Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Help! Robot Throwing Exceptions (http://www.chiefdelphi.com/forums/showthread.php?t=113160)

Fadedlite 09-02-2013 22:17

Help! Robot Throwing Exceptions
 
Our robot is throwing exceptions. Please Help!
Here's a picture of the output.

Kevin Sevcik 09-02-2013 22:25

Re: Help! Robot Throwing Exceptions
 
As usual with this problem, you're not planning properly and bracketing your robot with a try-catch structure. Luckily, the official playing arena provides a robust try-catch structure for all robots on the field. I predict that you'll see many fewer uncaught exceptions once you get your robot onto the field.

EDIT:In the mean time, I would suggest applying a more dynamic approach to catching your exceptions. Look around a bit and you should be able to find a good method for catching exceptions in a wide variety of situations.

Alan Anderson 10-02-2013 16:52

Re: Help! Robot Throwing Exceptions
 
I think Kevin is suggesting enabling the watchdog.


All times are GMT -5. The time now is 02:12.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi