Hello All,
I am calling a code unit that will recieve information from MSMQ, i have set MQBus singleton property to YES and for the first time it works fine, but when i run the same code unit for the second time, i get this error "Variable already created". Though i have tried various things like using the CLEAR function; but still i am unable to sort out this error.
Help me out;
Thanks and Regards,
0
Comments
onRun()
CREATE(Comcom);
CREATE(MQBus);
MQBus.OpenReceiveQueue('KHIPC040\private$\test',1,1);
Comcom.AddBusAdapter(MQBus,1);
Comcom::MessageReceived(VAR InMessage : Automation "''.IDISPATCH")
InMsg := InMessage;
InStr := InMsg.GetStream;
InStr.READTEXT(Line);
MESSAGE(Line);
Try this:
-- Alejandro --
Its working now;
Thanks a lot.