Home > Software engineering >  VB2012 connect the OPC service, run Group. AsyncWrite when this statement has been prompt "spec
VB2012 connect the OPC service, run Group. AsyncWrite when this statement has been prompt "spec

Time:11-04

Everyone a great god, and I am opcserver client development, PLC is used to read and write, using the vb language (vs2012), when using asynchronous writes to a mistake, and statements as: MyGroup. AsyncWrite (1, tempserverhandles, Pumpstates ErrorNr, transactionID, cancelID),
Error message "" System. The Runtime. InteropServices. SafeArrayTypeMismatchException" type of untreated abnormalities in opc. Exe, in other information: the specified array is not belong to the type of need, "


Really don't know what reason!

Strives for the great god give directions, thank you very much,

CodePudding user response:

Array Pumpstates=new object [] {1};
  • Related