Win32: Detecting when system is locked or sleeping

R

rodmc

I have written an application which works perfectly when the machine is
operating under normal conditions, however when the screen becomes
locked it imediately starts to fill up several hundred MB's of memory.

Is there a way to detect when the system is locked?

Best,

rod
 
S

skip

rod> I have written an application which works perfectly when the
rod> machine is operating under normal conditions, however when the
rod> screen becomes locked it imediately starts to fill up several
rod> hundred MB's of memory.

What do you mean by "locked"? Unresponsive to mouse or keyboard activity?
Blue screen? What is your application doing while it's filling up memory?
Which memory, disk or RAM?

rod> Is there a way to detect when the system is locked?

Perhaps Nagios can help: <http://www.nagios.org/>. In general, I don't
think a system can be relied upon to detect its own demise, as the recent
PC/Mac commercial about restarting illustrates:
<http://www.apple.com/getamac/ads/>.

Skip
 
D

Dale Strickland-Clark

rod> I have written an application which works perfectly when the
rod> machine is operating under normal conditions, however when the
rod> screen becomes locked it imediately starts to fill up several
rod> hundred MB's of memory.

What do you mean by "locked"? Unresponsive to mouse or keyboard activity?
Blue screen? What is your application doing while it's filling up memory?
Which memory, disk or RAM?

I think he means locked by the user for security.

Keyboard/mouse lock. As in ctrl-alt-del -> [Lock Computer]

Not the blue-screen, hung, rogered type of lock which is not voluntary and
rather more frequent.
 
R

rodmc

Yes, I mean just a good old fashioned screen lock (for security)
initiated by the user. 'Sadly' there has been nothing as exciting as a
blue-screen of death as yet, not even when the app swells to 400MB.

Best,

rod
 
R

rodmc

Further to my last post, I will try some of the tips presented above.
Also the app writes to the screen display (or Active Desktop). As
someone suggested, that could be where the problem is.

Best.

rod
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top