LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW program want exit after long period of running - any ideas?

I have a program that uses objects created with Endeavo GOOP Wizard 2.0 and uses a lot of control references. The program exits fine after a short period. However it hangs on EXIT after extended periods. I suspect its a problem with unclosed references or something to do with GOOP. The application maintains trends of channel data, but checks on memory usage indicate the there is plenty of memory. Any ideas?
0 Kudos
Message 1 of 4
(2,694 Views)
I agree with your initial idea, it is most likely un-closed references. I would suggest going through your code and making sure that everytime you have opened something that you close it before the VI ends.

If nothing else seems to work try to run some of the SubVIs, and see if it is specific to any 1 or 2 VIs.
0 Kudos
Message 2 of 4
(2,694 Views)
I went through the code and made sure all references get closed. I rewrote the core subroutines for another purpose, but the results are the same. The program will close but often takes several minutes.
0 Kudos
Message 3 of 4
(2,694 Views)
> I went through the code and made sure all references get closed. I
> rewrote the core subroutines for another purpose, but the results are
> the same. The program will close but often takes several minutes.

I also think this has to do with references that haven't been closed.
To help narrow it down, you might try to comment out or delete
functional areas of the program, let it run awhile and see if the exit
takes a long time. Keep deleting in large chunks until you make a
difference, then undo and split up the chunk.

Greg McKaskle
0 Kudos
Message 4 of 4
(2,694 Views)