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.

Memory Leak in GetPropertyValue

More
13 Jan 2014 10:22 #1660 by DavidGSAB
Thanx!

I will update and confirm.

/David

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

More
13 Jan 2014 07:47 #1658 by support
Dear Sir,
we have fixed the problem. Thank you again for reporting it.

Fix for QuickOPC 5.23 is in builds 5.23.1024.1 and later, and this build is now the one that is in the public download area of this site.

Fix for QuickOPC 5.30 is in builds 5.30.1024.1 and later, and this build is now the one that is in the public download area of this site.

Best regards
The following user(s) said Thank You: DavidGSAB

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

More
08 Jan 2014 09:59 #1657 by DavidGSAB
Thanx!

As of now we have to regulary log in (every 3 days) into our customers server and restart the service to prevent dataloss so it is a bit urgent to have some sort of hotfix or workaround as soon as possible.

Thank you again for the fast responce

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

More
08 Jan 2014 09:48 #1656 by support
Thank you.
I was able to reproduce the issue (with QuickOPC 5.30.513.1, actually).
I will let you know when we have a resolution.
Best regards

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

More
07 Jan 2014 15:11 #1655 by DavidGSAB
Hi!

The version on BaseLib is 5.21.175.1

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

More
07 Jan 2014 12:23 #1654 by admin
Replied by admin on topic Memory Leak in reading values
Hello,

thank you for this information. Which QuickOPC version and build are you using please? (most reliable way to find out: right-click on one of the assemblies, select Properties, and find the version info on the Details tab).

Best regards

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

More
07 Jan 2014 09:31 #1652 by DavidGSAB
Hi!

We have detected a memoryleak when reading values from OPC. I made a consolprogram that duplicates the problem. The leak is not big but our application runs as a Windows Service and eventually crashes due to "SystemOutOfMemory" Exception. We have isolated the problem to be in the GetProperty method.

This code shows an example which results in a memoryleak:
static void Main(string[] args)
        {
            while (true)
            {
                ReadValue();
                Thread.Sleep(10);
            }
 
        }
 
        private static EasyDAClient Client;
 
        private static string ReadValue()
        {
            if(Client == null)
                Client = new EasyDAClient();
 
            return Client.GetPropertyValue(@"localhost", "OPCLabs.KitServer.2", "Boilers.Boiler #1.CC1001.Input1", 2).ToString();
        }

Is there another way we can do this to avoid the leak?

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

Moderators: support
Time to create page: 0.051 seconds