05/09/2017
Hello,
I have an issue with my applications using OPC UA. Those are developped through the french IDE Windev.
The main issue is that they randomly crash (often after a few hours of waiting) and as the problem seems to happen on the .Net level, I'm unable to handle the exception.
Here's what I can observe on the Windows Event Viewer:
Informations sur l'exception : System.AccessViolationException
à <Module>.CAccesVM.bExecuteDelegate(CAccesVM*, UInt32, UInt32)
à WLangage.Runtime.CWDDelegateWL.ExecuteDelegate(System.Type)
à WL.CWLDelegate_void_KeepAliveEventHandler_Opc_Ua_Client_Session_Opc_Ua_Client_KeepAliveEventArgs.fWLDelegate(Opc.Ua.Client.Session, Opc.Ua.Client.KeepAliveEventArgs)
à Opc.Ua.Client.Session.OnKeepAlive(Opc.Ua.ServerState, System.DateTime)
à Opc.Ua.Client.Session.OnKeepAliveComplete(System.IAsyncResult)
à Opc.Ua.Bindings.TcpAsyncOperation`1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InvokeCallback(System.Object)
à System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(System.Object)
à System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
à System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
à System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
à System.Threading.ThreadPoolWorkQueue.Dispatch()
à System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
Sorry for the french words (I thouhgt it would be better to leave it as is, but if you need translation don't hesitate to ask).
I'm guessing there is some kind of timeouts involved, especially around the KeepAlive event but I don't get how to properly fix this.
If anyone could put me on the right tracks it would be great.
Thanks in advance,
05/30/2017
There is an unhandled exception in the function: CAccesVM.bExecuteDelegate()
This code is not part of the .NET codebase.
You can also add an UnhandledException handler to your AppDomain to prevent a process crash:
1 Guest(s)