discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] Destructor of block never called


From: Marius Cachelin
Subject: [Discuss-gnuradio] Destructor of block never called
Date: Fri, 9 Oct 2015 11:08:08 +0200

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]