Admin Production ni-theme
Current Publication

GetEnableResourceTracking

LabWindows/CVI

GetEnableResourceTracking

int GetEnableResourceTracking (void);

Purpose

Determines whether resource tracking is enabled in the current thread.

Note Note   This function is available only in the LabWindows/CVI Full Development SystemLabWindows/CVI Full Development System.

Resource tracking is available at both the extended and standard debugging levels. When you enable resource tracking, LabWindows/CVI tracks resources such as memory blocks, file handles, and panel handles that you allocate in your program. Selecting Extended as the Debugging level in the Debugging Options section of the Build OptionsBuild Options dialog box enables resource tracking by default. LabWindows/CVI displays currently allocated and recently released resources in the Resource TrackingResource Tracking window. If you select Standard as the Debugging level in the Build Options dialog box, you must use the SetEnableResourceTracking function to enable resource tracking.

Note Note  (RT) On RT targets, leaked resources persist until you reboot the target. However, the Resource Tracking window displays only leaked resources from the most recent program execution.

Display the Resource Tracking window by selecting Resource Tracking in the Window menu.

(Linux) This function is not supported.

Parameters

None.

Return Value

Name Type Description
state int Indicates if resource tracking is enabled.
Code Description
1 Resource tracking is enabled.
0 Resource tracking is disabled.

Additional Information

Library: Utility Library

Include file: utility.h

LabWindows/CVI compatibility: LabWindows/CVI 9.0 and later