Re: [Discuss-gnuradio] Problem to handle message port in thread

2017-11-12 Thread André Gomes
Hi Michael, Thanks for you support but I'm still getting the same error. :/ 1) Yes, I'm already doing that. 2) I did that. See figure bellow. Unfortunately, the error persists as you can see bellow. *Figure 1: *start() method. *​* *Figure 2:* error I have not found such examples you mentioned

Re: [Discuss-gnuradio] Problem to handle message port in thread

2017-11-12 Thread Michael Dickens
Hi André - I think you're looking for 2 steps: 1) In the block constructor, declare the message port, e.g.: {{{ message_port_register_out (pmt::mp ("frame request")); }}} You're probably already doing this. 2) Add the thread creation to the ::start method, so that the thread is not trying to d

[Discuss-gnuradio] Problem to handle message port in thread

2017-11-12 Thread André Gomes
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 constructo