LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Windows Application Verifier

Has anyone used the Windows Application Verifier with a CVI-built executable?

 

I'm curious if it works with a CVI developed app (maybe not in the debug mode but maybe in the logging mode?) and if it's capable of finding errors not detectable using a CVI debug build.

 

On a separate topic, I'm wonderingif there's anything available in CVI to help detect memory leaks?  I seem to recall hearing that CVI 2009 had something like this, but maybe it's in the optional profiler that's not part of the FDS.

 

Thanks.

 

Menchar

0 Kudos
Message 1 of 8
(4,825 Views)

Hey menchar - 

 

I haven't used the Application Verifier, but a major feature of the CVI 9.0 release was the resource tracking window.  From both a support standpoint and a development standpoint, I can vouch for it's ability to quickly track down memory leaks.

 

NickB

National Instruments 

Message 2 of 8
(4,821 Views)

Nick -

 

Thanks for the reminder (again Smiley Indifferent    )  That must be where I saw it.  The term "memory leak" doesn't show up in an index search in CVI 2009 Help unless I bungled it somehow.

 

I see Microsoft says to use PerfMon and watch private bytes as the app runs and also the allocated virtual memory.  App verifier will do it too but maybe only when hooked up to a debugger.

 

Thanks again.

 

Menchar

0 Kudos
Message 3 of 8
(4,813 Views)

Hi Menchar,

 

I consent: the resource tracking window turned out to be quite useful for me; I was able to detect and remove several memory leaks.

 

Wolfgang

0 Kudos
Message 4 of 8
(4,811 Views)

hello nickb:

how to contact you?your e-mail?Do you konw where can i get the file named "niScope.h"?thank you!

0 Kudos
Message 5 of 8
(4,785 Views)

Hello Yong_Z,

 

1) your contribution does not fit to this topic... Why don't you start a new thread, after searching the forum and the documentation,with an appropriate title?

2) Using Google, I found the following answer to your question: the software NIScope comes with NI digitizers, not with CVI

0 Kudos
Message 6 of 8
(4,782 Views)

Hello Wolfgang,

Thank you very much for your attention and reply,I'm so excited!There are so many things I don't know,so I want to meet someone who is expert in this areas. 

0 Kudos
Message 7 of 8
(4,779 Views)

I've found over the years that one of the best ways to cure memory leaks I have induced is very simple. Do a search for every instance of alloc, malloc or calloc and be absolutely certain there is a free call to go with it.

 

I personally prefer not to do this but if you alloc memory in a function and pass the pointer back, you really need to document that a free is needed to clear that memory. Even if you are the only one using that function, make it explicitly clear because you may forget (I know I do). Good practice is to document these things in usage comments and/or any design documents you do.

 

As for detecting them, Windows PerfMon can help there as somebody mentioned in this thread.

Martin Fredrickson
Test Engineer

Northrop Grumman
Advanced Systems and Products
San Diego, CA 92128
0 Kudos
Message 8 of 8
(4,718 Views)