Hier_block2 and message_source


I have two classes A and B both derived from hier_block2. A also
contains a message_source. The intention is to connect A with B inside a

class A(gr.hier_block2):

def __init__(self):

    self._source = gr.message_source()

class B(gr.hier_block2):

I connect the message_queue (in A) with B in a top_block like:

connect(A._source, B)

The subsequent run() command crashed with:

python: /usr/include/boost/shared_ptr.hpp:253: T*
boost::shared_ptr::operator->() const [with T = gr_basic_block]:
Assertion `px != 0’ failed.

Did I connect the wrong components?


  • David

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs