RobotStudio event

Messaging domain - reconnect to queue issue

Options

Here is a snippet of code from a C# windows app:
////////////////////////////////
//LINE 0 ( check if the queue allready exists )
if(theController.Ipc.Exists("ToPc_"+taskname) == false)
{
//LINE 1
ipcQueue_FromRAP = theController.Ipc.CreateQueue("ToPc_"+taskname,5,Ipc.IPC_MAXMSGSIZE);
}
//LINE 2
ipcQueue_FromRAP = theController.Ipc.GetQueue("ToPc_"+taskname);
////////////////////////////////
Problem description:
Line 0 (&1) is only running 1. time after a warmstart of the virtual controller. Then it does not execute ( ever ) when the windows app is stopped and started.

Line 2 always runs through so everything seems fine from the PC point of view.

However - events are only received when Line 1 has executed. Line 2 results on a "silent" queue - which I find a bit troublesome.....

So - what have I missed / is it a "feature" in the messaging domain to require warmstarts?

Kind regards


Laro882009-11-15 16:28:16

Comments