discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Error handler


From: Tom Rondeau
Subject: Re: [Discuss-gnuradio] Error handler
Date: Mon, 25 Apr 2011 22:01:12 -0400

On Mon, Apr 25, 2011 at 5:44 AM, Alexandru Csete <address@hidden> wrote:
On Thu, Apr 21, 2011 at 4:31 PM, Tom Rondeau <address@hidden> wrote:
On Sat, Apr 16, 2011 at 6:11 PM, Alexandru Csete <address@hidden> wrote:
Greetings,

I can see there is an error handler class in gnuradio-core / runtime /
gr_error_handler and I was wondering if there is an instance of it
created by the runtime that can be used by the blocks and maybe the
applications? So far I have only found fprintf's for error messages
though I haven't looked everywhere.

Alex

Alex,
We don't really use the gr_error_handler at all. All errors and warnings are done through either frpintf to stderr or throwing and catching exceptions.

If you have some ideas of how to make error handling better, I'd love to hear and discuss them.


Hi tom,

Thanks for the info.
For future enhancements one can consider creating a global object that provides functions like gr_debug(), gr_error(), gr_warning() that are accessible by both blocks and applications. Similar to what is available in Qt. I guess the only advantage over fprintf's would be uniform management errors and debug messages that could provide controlled shut down in case of critical errors.

Alex


Good ideas, thanks!

Tom
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]