10-08-2008 03:47 AM
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
Solved! Go to Solution.
10-08-2008 04:40 AM
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?
10-08-2008 05:15 AM
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
10-08-2008 05:26 AM
10-08-2008 06:03 AM - edited 10-08-2008 06:07 AM
ok... I've done that, I'll find out if that's the fix tomorrow morning.
Thanks for your help ![]()
10-09-2008 02:22 AM
Brilliant, thank you so much would NEVER have found that without your help.
Thanks again.
Derek