[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Destructor of block never called
From: |
Martin Braun |
Subject: |
Re: [Discuss-gnuradio] Destructor of block never called |
Date: |
Mon, 12 Oct 2015 11:22:02 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 |
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/
> address@hidden <mailto:address@hidden>
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>