Reference Leak When Changing Cursor Appearance in LabVIEW

Updated May 3, 2018

Reported In

Software

  • LabVIEW

Issue Details


When I change my cursor appearance using LabVIEW VIs in the Cursor Pallette, a reference leak appears in my Desktop Execution Trace report. How can I avoid this behavior?

 
Figure 1: Cursor Palette

 
Figure 2: Reference Leak

Solution

This is a known issue which occurs whenever a LabVIEW VI is used to change the cursor appearance and occurs regardless of which built-in cursor VI is used. The reference leak appears when resources are freed at the end of execution. The reference leak can be avoided by calling User 32.DLL with a Call Library Function Node instead of using the built in LabVIEW VIs. The example code below shows how to call User 32.DLL and set a new cursor for the LabVIEW Front Panel.

WAS THIS ARTICLE HELPFUL?

Not Helpful