CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

General Error Trapping

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Error Trapping
Guest







General Error Trapping
PostPosted: Mon Aug 20, 2007 8:01 am     Reply with quote

Hello,

This is just a general question on error trapping. Using various high level languages on the PC there are mechanisms for error trapping eg try{} catch{} etc.

What is considered to be the best method for error trapping on the PIC?
For example if there is an error writing to EEPROM or not getting the correct memory allocation using MALLOC. I know these are specific examples but I'm looking for any general comments.

Regards Sandyw Question
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Aug 20, 2007 1:19 pm     Reply with quote

The only thing they have is the assert() function.
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Mon Aug 20, 2007 1:34 pm     Reply with quote

Also there is a restart_cause() function that indicate the last conditon after reset.

Humberto
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group