CallbackOnCollectedDelagate was detected

...when I'm using the C# wrapper
'A callback was made on the garbage collected delegate of type UsbUirtManagedWrapper!UsbUirt.Controller+ReceiveCallback::Invoke'
The error message is random, and occurs regardless of the 'myCb= new ReceiveCallback.....' conditional compilation in the'Controller.cs' code.
It does occur the instant the USBUirt receives an IR signal.
I've read the Microsoft sugestions. Other than including the 'myCB...' code in the controller module of the wrapper, I'm at a loss on how to resolve this. Any suggestions? Thanks.
'A callback was made on the garbage collected delegate of type UsbUirtManagedWrapper!UsbUirt.Controller+ReceiveCallback::Invoke'
The error message is random, and occurs regardless of the 'myCb= new ReceiveCallback.....' conditional compilation in the'Controller.cs' code.
It does occur the instant the USBUirt receives an IR signal.
I've read the Microsoft sugestions. Other than including the 'myCB...' code in the controller module of the wrapper, I'm at a loss on how to resolve this. Any suggestions? Thanks.