Re: [Discuss-gnuradio] Deleting a block in C++

2012-06-13 Thread Johnathan Corgan
On Fri, Jun 8, 2012 at 11:03 AM, Alexandru Csete wrote: > Is there a smart way to delete a GNU Radio block in C++? > Until now I have been using the shared_ptr().reset() method but it > seems to me that it will only call the destructor if the parent > top_block has not been run. > "Don't do tha

[Discuss-gnuradio] Deleting a block in C++

2012-06-08 Thread Alexandru Csete
Greetings, Is there a smart way to delete a GNU Radio block in C++? Until now I have been using the shared_ptr().reset() method but it seems to me that it will only call the destructor if the parent top_block has not been run. This gives me problems when I try to delete and recreate a hardware in