When I try to use the PIAsynchStatus to fetch PIPOints and PIvalues from server,
the recorded values occasionally showing the unexpected values. We found it is related to memory or caching issue.
I have asked about Slimfast usage before. Applied the slimfast, it seems working fine.
I would like to confirm the proper usage of Slimfast in relasing PIPoint after use could release the memory immediately?
For p = pointFrom To pointTo ... If workingCount >= iAsyncGroup Then For i As Integer = 0 To iAsyncGroup - 1 Do Loop While _workingPIAsynchStatus(i).ProgressPercent < 100 Next ... For Each v In vals If TypeOf v.Value Is System.Single Then If (v.Value > threshold) Then exceedCount += 1 Else Exit For End If ... 'added slimfast For each piPoint in piPoints Dim obj = CType(piPoint, ISlimFast) obj.SlimFast() Next Endif Next