LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LV 2011 Array of Event Refnum crashing LV

I'm implementing the full featured UI packaged with TestStand into our application but I'm removing functionality we don't want and cleaning parts of it up as I go.

 

The Full UI - Configure Event Callbacks.vi has a single Reg Event Callback node with ~30 registered events and callbacks and a mass confusion of wires running everywhere.  This Refnum gets passed out of this VI and eventually gets routed to Full UI - Shutdown.vi where the events get unregistered.

 

I split up this 30 event single node into 7 seperate VIs to group the functionality to a specific control (App Manager, Seq View, ListBar, etc).  In each VI is a Reg Event Callback and I pass out a refnum from these.  I pack each of these into an array where a For Loop in Full UI - Shutdown then indexes them and Unregisters them.  This is causing LabVIEW to crash on the first Refnum I'm attempting to unregister.

 

I've tried just passing out one of these Refnums and building it into an array of this single element and it indexing it in the For Loop and this crashes.

 

I tried just now to index this single item array with the Index Array primitive and it DOES NOT crash LabVIEW.  If I have to I'll do this as a workaround but it's ugly.

0 Kudos
Message 1 of 1
(2,176 Views)