LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Rich text box instances memory eaters?

This vi is eating lots of memory. Are the richtextbox objects used right?

0 Kudos
Message 1 of 6
(2,973 Views)

Do you mean disk memory? The pasted pictures are taking close to 80% of the disk space (file size).

Richard






0 Kudos
Message 2 of 6
(2,960 Views)

Why are you using RichTextBoxes? All that they seems to be displaying is a simple OK and Cancel message. A simple string indicator can do the same thing. Even with the RichTextBoxes, why are you setting the Font and text in each iteration of the loop?

0 Kudos
Message 3 of 6
(2,958 Views)

Tnx guys.

 

I found the problem. I was registering user events in my 'while loop'. I think they got stacked up in memory.

 

The strange thing with rich text boxes is, after u set a text value, it disappears  

0 Kudos
Message 4 of 6
(2,936 Views)

I still don't understand why you're using RichTextBoxes.

0 Kudos
Message 5 of 6
(2,930 Views)

I think I fancy them. But I know it's better strategy to use LV objects.

0 Kudos
Message 6 of 6
(2,926 Views)