[Top][All Lists]

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

Re: [Discuss-gnuradio] Error handler

From: Alexandru Csete
Subject: Re: [Discuss-gnuradio] Error handler
Date: Mon, 25 Apr 2011 11:44:03 +0200

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:

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.


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.


reply via email to

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