I have a method in a module called “SendIPCMessage”, which takes one parameter of type IPCMessage. If it gets called from a thread it raises a AccessingUIfromThread exception due to some UI interaction, so I’m trying to use CallDelegateOnMainThreadMBS like this:
dim themessage As IPCMessage = new IPCMessage(Hdr_DvcCmd,Command,DCP_SysID,Str(Payload)) CallDelegateOnMainThreadMBS(AddressOf SendIPCmessage,themessage) but it gives a compiler error of “There is more than one item with this name and it’s not clear to which this refers”, with the entire second line highlighted. I’ve also tried declaring themessage as a Variant and then assigning the IPCMessage to it, but it gives the same result. What am I doing wrong? Thanks, Julia _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info