Marius, what happens if the fg terminates itself (e.g. add a head block)?
M On 09.10.2015 02:08, Marius Cachelin wrote: > Hi everyone, > > I am writing here concerning the destructor of a new block. > > I want to print out some information recorded during runtime ( # packet > sent, # packet received... and so). So, I set "std::cout..." statement > inside the destructor of my block, following these 2 tutorials : > > http://gnuradio.org/redmine/projects/gnuradio/wiki/OutOfTreeModulesConfig > http://gnuradio.org/redmine/projects/gnuradio/wiki/BlocksCodingGuide > > When I click on the cross symbol to exit my application, the destructor > of my block is never called. > > _There is my destructor :_ > > / /* > * Our virtual destructor. > */ > my_block_impl::~my_block_impl() > { > / > / std::cout << "destructor called" << std::endl; > / > / } > > / > Could someone help me solving this problem? > > Thanks in advance. > > Marius > -- > *CACHELIN Marius* > /Ingénieur Systèmes, Réseaux et Télécommunications/ > marius.cache...@gmail.com <mailto:marius.cache...@gmail.com> > > > _______________________________________________ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio