LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.NET object memory problem

Hi everybody,
 
I have written a small vi that scale and move an image in a .NET PictureBox (based on an example that provided by  
 
As you will rapidely understand, I`m not familliar with .NET programming.
 
I`m pretty happy about my vi, but I have a memory leak problem. In fact, at every iteration of the while loop, two Bitmap object are created, increasing memory use. This memory is never released and after a few 100 of iteration I run into troubles.
 
I tried to use the dispose method for the Bitmap class but it doesn`t release memory and give error.
 
Does somebody see what is the problem and I could I solve it.
 
In attachement the vi and its scrrenshot.
 
Thanks in advance
 
Rodrigue
 
 


Message Edité par rodrigue le 02-10-2008 06:28 AM
Download All
0 Kudos
Message 1 of 2
(2,649 Views)
I forgot to tell you that I use Labview Full 8.5 and .NET 2.0 on a PC under windowsXP.
0 Kudos
Message 2 of 2
(2,643 Views)