LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI 6.0 - exe; frozen screen

Hello, CVI 6.0 users - remember 6? 
We developed both code and GUI in CVI 6. 
Our system is a sensor monitoring system that runs on stand alone PCs. 
We are getting instances when the screen freezes; Windows (XP) task manager shows 2 instances of the software apparently running, but if you close one, the other also shuts down. 
Equally confusing is that our auto logs show that events continue to be logged when the software has apparently frozen. 
Does this sound like a WIndows problem rather than a CVI issue?
Has anyone had this problem and know how to avoid it?
 
AlanHW
0 Kudos
Message 1 of 2
(2,741 Views)
You can add code to your app so that as it starts, it can be certain it's the only instance running.  WIth the Win32 API you can use a named mutex for this, with the app attempting to grab the mutex at startup:  if it can't grab it, the app must already be running.  Or use the CVI library utility that does the same thing.

If the three finger salute to get the task manager is working, then the system isn't "frozen".  You're seeing logging too. 

If you have any kind of a loop within the app or a busy wait that doesn't process events you might see this behavior - the app's running, but the GUI isn't getting refreshed. 

Is the windows desktop "frozen" as well?  Or just your app's GUI?

Menchar


Message Edited by menchar on 04-16-2007 10:46 AM

0 Kudos
Message 2 of 2
(2,729 Views)