Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ptp-dev] Problem with IRuntimeRemoveNodeEvent

I'm having problems with getting a PROXY_EV_RT_REMOVE_NODE event sent from 
my proxy to delete the node object from the machine view. My proxy code 
calls proxy_remove_node_event to create the event object that I sent to 
the front end. This generates a message with two parameters, an integer 
'1', and the second parameter, which is a single node identifier, using 
the id number generated by my proxy. The front end gets this event but 
does not do anything with it.

I tried to debug this and found that the 
handleEvent(IRuntimeRemoveNodeEvent) method at about line 441 in 
AbstractRuntimeResourceManager is not properly matching the event id sent 
from the proxy. I think part of the problem is that the method 
handleEvent(IProxyRuntimeRemoveNodeEvent) in AbstractProxyRuntimeSystem 
near line 509 is using attrs[0] rather than attrs[1]. If I change this to 
use attrs[1], then the event is matched and removeNode() is called.

However, the machines view does not seem to be deleting the node icon. 
Originally, when my job ended, the node icon changed from a diamond on 
green background to caution icon on green background. Now it changes to 
caution icon, then to a question mark on white background.
Dave


Back to the top