LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Executable continues to run?

I have a large application executable written in LabVIEW and IMAQ and it runs fine. However, it seems that when we exit the executable at least part of the program is still running. The XP system bogs down, and when we try to run the executable again it runs much slower. It eventuallly gets worse, and the only way out of it is to restart Windows. If this indeed is a problem with my executable its unacceptable. Thanks.
PaulG.
Retired
0 Kudos
Message 1 of 3
(2,852 Views)

One possibility is that you have a memory leak in your code resulting from not properly closing all the references that you open. In this situation, the code will appear to work fine but will take forever to shutdown because before the program (or LV) can quit, it has to release all those references that are left open. If this is the problem, the way to verify it is to watch the task manager. As the program is running you will see the memory allocated to it increasing over time. Then when you quit the program, the program should remain in the "Processes" list after it has quit. As you watch it you will probibly see the memory allocated to it start to drop, slowly at first and then more rapidly.

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 2 of 3
(2,844 Views)
I do have a number of open vi references. I assumed that all open sub vi's were shut down when the main vi was closed. Glancing over the code I can see where the references are opened, but can't see where they are being closed when the program shuts down. It might be a day or two before the customer will allow me to tweak on his system. I'll modify the code and let you know, but this is probably the solution. Thanks!
PaulG.
Retired
0 Kudos
Message 3 of 3
(2,824 Views)