Forum: GNU Radio Function probe block prevents destructor from running

Posted by Eric B (Guest)
on 2013-02-04 17:39
(Received via mailing list)
I am creating a hardware source block and ran into an issue where the
destructor for the block does not appear to get called when closing the
flowgraph. This is problematic because I'm using the destructor to 
release
hardware resources. I finally discovered that the problem only exists 
when
using the "function probe" block to poll the block. Simply disabling the
function probe block in the flowgraph allows the destructor to run
correctly.
I verified this behavior by creating a simple block with a single 
printf()
statement in the constructor and destructor, as well as one in a probe
function. The destructor printf() does not get called when polling the
probe function.
Any idea why this happens or how to fix it?
Thanks!
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.