LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Avoiding memory leaks in queues

Sreedhar,

 

it depends on the datatype you keep in the queue wether you see a "free" or not. If your datatype is static (e.g. scalar numeric), you will not see any difference as Jeff mentioned.

If you are working with datatypes which might have different sized (array, variant), it is possible that a flush "frees" memory since every element allocated for the queue is reinitialized on the default datavalue.

 

hope this helps,

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 11 of 12
(750 Views)

yep!! Im dealing with arrays... never thought that there will be a difference if Im using arrays.

 

Things seems to be more clear now.

 

Thanks.

Message 12 of 12
(742 Views)