From: W.
Sent: Thursday, January 13, 2011 10:47 PM
To: Zbynek Zahradnik
Subject: Error Explanations
Hello Zbynek,
..... I have some thoughts on this and would like your expert opinion. The customer has proposed a workaround ..... I will comment on that ...... error and the workaround below the error
.....
The SubscribeItem call fails because an "External component has thrown an exception"
System.Runtime.InteropServices.SEHException = {"External component has thrown an exception."}
Source = "EasyOpcDANet"
StackTrace = " at AfxThrowInvalidArgException() at OpcLabs.EasyOpc.DataAccess.CDAInnerPump.StartEvents(CDAInnerPump* ) at CEDAAbstractPump.Activate(CEDAAbstractPump* ) at OpcLabs.EasyOpc.DataAccess.EasyDAClient.SubscribeItem(DAItemGroupArguments arguments) at OpcLabs.EasyOpc.DataAccess.EasyDAClient.SubscribeItem(ServerDescriptor serverDescriptor, DAItemDescriptor itemDescriptor, DAGroupParameters groupParameters, Object state) at
InnerException = Nothing
This error is correlated with service startup and shutdown (especially premature shutdown of the service before it has finished subscribing all of its tags). The occurrences of this exception during premature shutdown are a negligible concern. Although it's very rare, we HAVE seen this error arise spontaneously during otherwise-normal service runtime, so we can't ignore it completely.
Proposed workaround: when this exception occurs, retry the SubscribeItem call and hope that the error goes away.
Have you seen this error before. This is one I am not sure about. I guess retying is the best option but would like to know if you have any insight on this error.
Thanks in advance for you time.
W.