Thank you Eric,

But I still have a problem. I simply made two blocks. 

1) First One
gr_data_parser::gr_data_parser ()
  : gr_block ("gr_data_parser",
                   gr_make_io_signature (1, 1, sizeof (gr_complex)),
                   gr_make_io_signature (1, 2, sizeof (gr_complex)))

2) Second One
gr_data_parser2::gr_data_parser2 ()
  : gr_block ("gr_data_parser2",
                   gr_make_io_signature (1, 2, sizeof (gr_complex)),
                   gr_make_io_signature (1, 1, sizeof (gr_complex)))

And I connect above two blocks in following way.

self.connect(self.u, ..... , data_parser, data_parser2 , .... self. u);

I put a debug code in the function 'general_work()' of first function, I
just can have 

output_items.size() = 1

The number of output stream of first block could not be changed. Is there
any other point I should change?

Thanks in advance
Yong
-- 
View this message in context: 
http://www.nabble.com/Segmentation-fault-%3A-Try-to-make-dual-channel-building-blocks-tp22378574p22383386.html
Sent from the GnuRadio mailing list archive at Nabble.com.



_______________________________________________
Discuss-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to