Hello,
I try to send a notification from a server side object to it’s client side proxy.
In the server side object I execute:
vtkPVSessionBase *session=vtkPVSessionBase::SafeDownCast(
vtkProcessModule::GetProcessModule()->GetSession()
);
vtkSMMessage msg;
msg.set_global_id(theproxyid);
msg.set_location(vtkPVSession::CLIENT);
session->NotifyAllClients(&msg);
In the client side proxy I execute:
vtkMultiProcessController *ctrl=vtkProcessModule::GetProcessModule()->GetGlobalController();
if (!ctrl)
ctrl->AddRMICallback(&RMICallback, this, vtkPVSessionServer::SERVER_NOTIFICATION_MESSAGE_RMI);
Are the steps more or less correct?
The problem is that the call to GetGlobalController() from the proxy always returns NULL.
How can I fix this so that I am able to notify the proxy from it’s remote object?
Thanks
Patrick