[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Memory leak when creating several USRP 2 objects
From: |
Eric Blossom |
Subject: |
Re: [Discuss-gnuradio] Memory leak when creating several USRP 2 objects in C |
Date: |
Thu, 25 Feb 2010 16:01:43 -0800 |
User-agent: |
Mutt/1.5.20 (2009-08-17) |
On Wed, Feb 24, 2010 at 10:53:49AM +0100, Christian Kisters wrote:
> Hi,
>
> Like in the old thread '[Discuss-gnuradio] memory leak when creating several
> usrp2 objects' from
> 'Jakob Meineke Thu, 30 Jul 2009 09:52:20'
> http://www.mail-archive.com/address@hidden/msg20403.html
> the problem with the memory leak still exists.
>
>
> The memory usage increases while creating several USRP2s in C.
>
> usrp2::usrp2::sptr u2;
> for (int i=0;i<20;i++)
> {
> U2.reset();
> u2 = usrp2::usrp2::make("eth0","");
> }
>
> The used memory will be released only by closing the program. So it's
> expected that the memory runs out of its limits.
>
> Has someone an idea how to fix this problem?
>
> Best regards
> Chrisitan
Thanks Christian for pointing out the problem.
I'll take a look at this, but it may be a few days.
How much is it leaking per iteration?
How are you determining how much it's leaking?
Thanks!
Eric