I'm getting an error while trying to use an output message port with a thread. The thread is responsible for executing function *check_buff()*. It seems to return the error bellow because the message port inside the function was not initialized yet. Firstly, the thread was started at the constructor. According to this link <https://lists.gnu.org/archive/html/discuss-gnuradio/2016-02/msg00388.html>, starting at the constructor is the root of the problem and one should start the thread in the start function of the block (bool start()). So I did but I'm still getting the same error. The port still does not exist when the thread starts.
How do I guarantee the existence of the port before starting the thread? *Figure 1: *Error [image: Inline images 2] *Figure 2: *Function used by thread. [image: Inline images 1] Regards, *André Gomes* Email: andre.go...@dcc.ufmg.br Homepage: http://homepages.dcc.ufmg.br/~andre.gomes/ Mobile: +55 31 994859285 <+55%2031%2099485-9285>
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio