I have a VB.NET application that accesses a DI-148U using the WinDaq ActiveX control. The following code is called repeatedly while application executes:
Private Function GetAtDData() As String
Dim data As Double(,)
Dim output As String
AxWinDaq1.EventLevel = 10
AxWinDaq1.Start()
data = AxWinDaq1.GetDataFrame(10, WINDAQLib.enumFormat.FormatScaled)
output = data(0, 0).ToString()
AxWinDaq1.Stop()
Return output
End Function
When this code executes, memory and .GDI object usage continues to increase up to the point where the application crashes. It isn't clear to me why so many GDI objects are being allocated and not released. What can I do to stabilize the GDI object and memory usage?
Thanks,
BIll