[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] smart pointer problem
From: |
johan kuijpers |
Subject: |
[Discuss-gnuradio] smart pointer problem |
Date: |
Wed, 02 Mar 2011 08:36:28 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 |
Hi,
I'm fighting a bit with a smart pointer. I want to apply a filter in my
block. Hence I construct a filter as shown below:
gr_fir_filter_fff_sptr hi_pass = gr_make_fir_filter_fff(1,
gr_firdes::high_pass (1.0,
64000,
5000,
1000,
gr_firdes::WIN_HAMMING,
6.76
));
as soon as I dereference the smart pointer in order to use the filter I
get an assertion error: const [with T = gr_block_detail]: Assertion `px
!= 0' failed.
hi_pass->general_work(noutput_items, ninput_items, input_items,
output_items);
this means the smart pointer doesn't have a pointer (any longer?) to the
filter. Does anyone see what I'm doing wrong. I've been trying quite
hard to find the mistake but I simply don't get it.
Cheers,
John.
- [Discuss-gnuradio] smart pointer problem,
johan kuijpers <=