Quantcast
Channel: OPC Labs - OPC Labs - Recent Topics - OPC Labs Online Forums
Viewing all articles
Browse latest Browse all 1794

EasyUAClient StackOverflowException - by: fha

$
0
0
Dear Zbynek,

I have started to implement the QuickOpc to my older project, but I came across the StackOverflowException. It seems it happens inside of the OpcLabs worker thread…
This problem can be reproduced inside of new empty project (has been sent to your e-mail already). If you change the CurrentThread.CurrentUICulture first and then create the instance (new operator or take SharedInstance) of EasyUAClient it crashes. If you create the instance first, then it works.

I also noticed, when AppDomain.CurrentDomain.AssemblyResolve event is registered before you create instance of the EasyUAClient the following exception is thrown:
System.TypeInitializationException: 'The type initializer for 'OpcLabs.EasyOpc.UA.Toolkit.UAClientEngineBase' threw an exception.'
FileLoadException: Could not load file or assembly 'Opc.Ua.Client, Version=1.3.342.0, Culture=neutral, PublicKeyToken=6faddca41dacb409' or one of its dependencies. Neplatný ukazatel (Exception from HRESULT: 0x80004003 (E_POINTER))

QuicOpc version 5.52.184.1
OPC UA
Windows 7 prof. CZ
.Net 4.5.2
MSVS 2015 prof.

Do you have any ideas?

Thank you in advance,

Frantisek

Viewing all articles
Browse latest Browse all 1794

Trending Articles