LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Application takes long time to close

Solved!
Go to solution

Hi there, I have an exe built with v7.1 that has a strange feature.

 

When I close the exe the Window turns white and it looks like the application has stopped responding.  From there I can ctrl+alt+delete to 'end task' or if I leave it eventually it will close down.   However this only seems to happen when the appliaction has been running for several hours.  It's not a huge problem but Id rather try and get to the bottom of it, the only problem is that I don't have the first idea how to start tracking this down.

 

Does an one have any ideas to help on the way?

 

Thanks in advance.

 

Derek  

0 Kudos
Message 1 of 6
(3,582 Views)

Hi there

 

This sounds like a memory leak in your application due to unclosed references. Search for any opened references to ActiveX/COM/.NET objects, controls, VIs etc. and make sure to close them when they are not needed any more. Observe the allocated memory to see if there is a increasing amount of memory allocation during run time.

 

Can you post some code so we can have a look?

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
Message 2 of 6
(3,572 Views)

I don't really think I have anything that would cause a memory leak but I'll do as you suggest and keep an eye out for increased memory usage.

 

What I have introduced recently is once a second I call  the open G "Current VIs Referance" vi.  Could this be the problem? Think I'll move this to outside the main loop so it only get's calle dthe once.

 

Thank you.

 

Derek

0 Kudos
Message 3 of 6
(3,556 Views)
Solution
Accepted by delbertson
Well, this IS indeed a reference that is not closed after it is not needed any more. Put the Open Reference in front of the loop, use that single reference inside the loop and close the reference after the loop. That could solve the problem.
Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
Message 4 of 6
(3,552 Views)

ok... I've done that, I'll find out if that's the fix tomorrow morning.

 

Thanks for your help Smiley Happy

Message Edited by delbertson on 10-08-2008 06:07 AM
0 Kudos
Message 5 of 6
(3,545 Views)

Brilliant, thank you so much would NEVER have found that without your help.

 

Thanks again.

 

Derek

0 Kudos
Message 6 of 6
(3,516 Views)