Hello,
Is there any way to reset or clear all of the messages related to a roMessagePort object?
Currently I am simply re-initiating the message port and then relinking event handlers like this:
mp = CreateObject("roMessagePort")
v.SetPort(mp)
receiver.SetPort(mp)
This sequence is called multiple times / every time that I need to reset the port. It seems to work but it feels like a bit of a hack.
Basically I find that after returning to the port (after dealing with something else in another loop in the script), there are several UDP messages / events waiting to be executed / delivered. Given that these were sent earlier, they should be ingored - so I need to clear or reset the roMessagePort object.
Thanks!
S