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, 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.