LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dereference C# labview

Hello,

I try a LabView project with DotNet DLL.

I've out parameter in my function, like this :
public void funcOut( out Bidon bidon )

In LabView, I'm using "close reference". In my code I'm counting number of reference of my param bidon. In execution the number of reference grow and down.

But if I'm starting perfmon, adding DotNet memmory counter. The graph is allways growing. It's normaly ?

Thanks
Download All
0 Kudos
Message 1 of 2
(3,236 Views)
I don't believe this is a LabVIEW issue. The same thing happens if your class is called from a C# app. The problem lies in the .NET garbage collection. The destructor for a class can't be called directly. The .NET Garbage Collector will call the destructor(s) "as needed". You can, however, explicitly call the Garbage Collector via System.GC.Collect(). What I don't know is if the LabVIEW<->.NET interface will automatically call the Garbage Collector when the references are all closed out.
0 Kudos
Message 2 of 2
(3,197 Views)