Access custom CView from the controller when it has been created from the .uidesc

And once again…

I found a solution…

I’m using a MessageController sending message from processor to controller and from there to MessageController.

(from processor)sendMessageText->(in controller)receiveText->uiMessageController->setMessageText->(in MessageController) I receive the message through the function setMessageText and from there I set my CControl/CView

It’s working but is it ok to do it this way??

Anybody?

EDIT: It seems to me like if the MessageController isn’t working on the same thread as the custom control’s graphics, because calling invalid() (rapidly) in the control through the MessageController makes access violation and a crash :confused:

EDIT2: It is the sendTextMessage( from the processor that is breaking it, if I turn any other knob in the plugin’s GUI, then there will be an access violation in the vector that holds the MessageControll