On Thu, Apr 21, 2011 at 4:31 PM, Tom Rondeau <trondeau1...@gmail.com> wrote:

> On Sat, Apr 16, 2011 at 6:11 PM, Alexandru Csete <oz9...@gmail.com> 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
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to