Professional OPC
Development Tools

logos

Online Forums

Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.

Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.

Do not use the Contact page for technical issues.

× If you are developing in .NET, but are using the OPC-UA (OPC Unified Architecture), please post in the QuickOPC-UA category instead.

EasyOPCDA Client Freezes when placed in multithreaded application

More
25 Apr 2022 13:28 #10820 by Restrepo
Hello,

I am currently working with a customer that is running into a strange situation, and I was hoping to get some guidance on what could be the issue that he is experiencing.

The application being develop uses the EasyDAClient object to connect to a Kepserver OPC Server; however, it looks like when put into a multithreaded application (running as a service), the application freezes. Now, we were able to find out that the freeze happens whenever the first line of code involving the EasyDA Client is evoked.

Also, If he runs the application as a console App, Then when the application reaches line 54 of the screenshot (CodeSnippet.PNG attached) below application freezes and keeps frozen until I click the console application and click it somewhere else again. This makes the thread unfreeze and the application starts working again.

There are no Memory or CPU Spikes when the application freezes, and this is not happening whenever a simple Console application (Single Threaded) is tested. Is there anything significant steps that need to be taken when developing multi-threaded applications and the QuickOPC Toolkit? Perhaps, the Object has to be instantiated in a certain part of the applciation? Or do you have any suggestions on what else we could try to get a bit more information regarding this issue?

Thank you in advance.


Dev System:

SDK Version - 5.62.1032
VS 2019 and 2022
Production environment where the issue is replicated - Server 2019, Windows 11, Windows 10
.NET Framework 4.8


Please let me know if you have any questions or need anything else from us.

-Rod
Attachments:

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.049 seconds