Swig/python memory leak

Hi,

May be this is not the appropriate place to post this problem but I’m
working on gnuradio and USRPs and trying to access c++ objects from
python.
Every thing works well, but in each call I got this display:

swig/python detected a memory leak of type ‘my_type *’, no destructor
found.

“my_type” is a struct type that I’ve defined in c++.
It seems that swig didn’t recognize “my_type” type but how to figure it
out.
Any idea?

Regards,
Nada

On 05/27/2013 11:10 AM, Nada ABDELKADER wrote:

It seems that swig didn’t recognize “my_type” type but how to figure it
out.
Any idea?

The .i file that you gave to swig, its probably missing a definition for
my_type.

-josh

The .i file includes the .h file where “my_type” is defined. isn’t
that enough?

Josh B. [email protected] a crit:

Hi,

I’ve already started to do this with gr-osmosdr. Right now, I’ve
updated
their
interface to the RTL-SDR (tested) and HackRF (untested) to compile
against the new master branch of GNU Radio. You can use my repo here
as a remote with your current gr-osmosdr to get the gr-next branch to
build.

GitHub - trondeau/gr-osmosdr

In file included from
/home/…osmosdr_source-c_impl.cc:38:0:/home/…osmosdr_src_c.h:23:27:
fatal
error:
gr_sync_block.h: no such file or directory compilation terminated

Tom

Ralph.