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 Alarm&Event
For record, the modified code is as follows:
Imports OpcLabs.EasyOpc.AlarmsAndEvents
Public Class Form1
Dim EasyAEClient As New EasyAEClient
Dim AEFilter As New AESubscriptionFilter
Dim MyHandle As Integer
Dim State As Object
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Dim areas(0) As String
areas(0) = "Resource"
AEFilter.Areas = New AENodeDescriptor() {"Simulation"}
AddHandler EasyAEClient.MultipleNotifications, AddressOf EasyAEClient_MultipleNotifications
MyHandle = EasyAEClient.SubscribeEvents("", "OPCLabs.KitEventServer.2", 100, State, AEFilter)
End Sub
Private Sub EasyAEClient_MultipleNotifications(ByVal sender As Object, ByVal ev As EasyAEMultipleNotificationsEventArgs)
For i As Integer = 0 To ev.ArgsArray.Count - 1
Dim e = ev.ArgsArray(i)
If Not e.Event Is Nothing Then
Label1.Text += 1
End If
Next
End Sub
End Class
I will let you know when I have the results.
BTW, how many events per minute do you have, very roughly?
Thank you
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Public Class Form1
Dim EasyAEClient As New OpcLabs.EasyOpc.AlarmsAndEvents.EasyAEClient
Dim AEFilter As New OpcLabs.EasyOpc.AlarmsAndEvents.AESubscriptionFilter
Dim MyHandle As Integer
Dim State As Object
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Dim areas(0) As String
areas(0) = "Resource"
AEFilter.Areas = areas
AddHandler EasyAEClient.MultipleNotifications, AddressOf EasyAEClient_MultipleNotifications
MyHandle = EasyAEClient.SubscribeEvents("", "HIMA.TEST-XAE-AE.1", 100, State, AEFilter)
End Sub
Private Sub EasyAEClient_MultipleNotifications(ByVal sender As Object, ByVal ev As OpcLabs.EasyOpc.AlarmsAndEvents.EasyAEMultipleNotificationsEventArgs)
Try
For i As Integer = 0 To ev.ArgsArray.Count - 1
Dim e = ev.ArgsArray(i)
If Not e.Event Is Nothing Then
If e.Event.QualifiedSourceName <> "System" Then
Label1.Text += 1
End If
End If
Next
Catch ex As Exception
End Try
End Sub
End Class
Waiting for your reply
Regards
Please Log in or Create an account to join the conversation.
But if you can show that the memory leak is present in 5.12 and not in 5.23 or 5.30, I will get you the upgraded license for free. If it is present in 5.23/5.30 as well, we will fix it there - and in such case you will get it for free as well. Do not expect version 5.12 be fixed.
But the whole thing assumes that there is a reproducible case.
Please Log in or Create an account to join the conversation.
Can I use the 5.30 version with my licence for 5.12?
Please Log in or Create an account to join the conversation.
thank you for reporting this.
Do you have a sample code that shows this? Of course we can put it together here, but if we had yours, it would be more likely that we will be able to reproduce it.
Also, 5.12 is a fairly old version. Currently we make bug fixes to versions 5.23 and 5.30.
Best regards,
Please Log in or Create an account to join the conversation.
we have detected a memory leak when we use the Alarm & Event Notification. In particular, our application is always on and, after a couple of days the memory used by itself become from 20MB to 500MB.
We made all check and it appens only when the we declare a new instance of
"OpcLabs.EasyOpc.AlarmsAndEvents.EasyAEClient" and add a handler
"AddHandler EasyAEClient.MultipleNotifications, AddressOf EasyAEClient_MultipleNotifications".
This appens also if no events arrive.
We are using a QuickOPC-Classic 5.12
Thanks
Please Log in or Create an account to join the conversation.