المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Should an application to have a central error handling model?



C++ Programming
03-30-2009, 07:33 AM
Dear fiends
I want to develop a new component for an application to handle all Errors(e.g Bad memory pointer, Bad file directory etc.) in the application. There is a problems.
What technic should I use to make it easy to report error?For instance ,It is not necessery to report a error by using if-else clause or return value.C++ exception or SEH? How to implement?
I am looking for solution to implement this.
Any reply regard to this topic will be deeply appreciated.
Best regards
Lance