LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

very high memory consumption > 1GB!

Solved!
Go to solution

Thanks, I will be looking in to this soon.  But other projects inerrupted this one.  Smiley Frustrated

 

Honestly, I didn't even know CVI had that feature, so I'm very optomistic about it!

0 Kudos
Message 11 of 14
(1,579 Views)

So I've started looking into the Resource Tracking tool in more earnest.  Very revealing!

 

What do the line items under the User Interface section mean?  Are the red items bad?  

 

2016-05-16 07_24_36-Resource Tracking.png

 

Here is the line in source code where the first line item is listed:

 

2016-05-16 07_24_48-c__..._Documents_SVN Checkouts_WinTestTaurus_WinTestTaurus.cws.png

0 Kudos
Message 12 of 14
(1,498 Views)

Hello Electro.

 

From the help:

"LabWindows/CVI displays newly allocated resources in red text, existing allocated resources in black text, and recently released resources in grey text."

Red is not necessary bad, you have to take care to de-allocate those resources. For menu bars for example you have to call DiscardMenuBar after you're done with it.

In case a memory leak you should see accumulating blocks under Memory category.

0 Kudos
Message 13 of 14
(1,492 Views)

Thanks for introducing me to Resource Tracker.  It's shown a bright light on my bad programming litter.  I've cleaned up all my dangling mallocs and now we're running with a low footprint.


Thanks!

0 Kudos
Message 14 of 14
(1,464 Views)