Home All Groups Group Topic Archive Search About

Program 'hangs' on password protected screensaver.....

Author
20 Nov 2007 7:06 PM
John Morley
Hi All,

I maintain some software that is used for data acquisition. This code
has been in wide for a long time. Now, a user tells me that he must
'lock' his PC using a password protected screen saver, and that once
unlocked, he finds that the code is returning corrupted data, or has
locked up :-(!

How can I find out more about what is happening here, and what fixes I
might implement to solve the problem? Are there any 'gotcha's'
associated with screen savers and VB6??

BTW, I assume that applications are supposed to continue uninterrupted
when the screen saver is active, is that correct, or are they suspended??


Thanks!

John

Author
20 Nov 2007 7:37 PM
Ralph
Show quote Hide quote
"John Morley" <jmorley@nospamanalysistech.com> wrote in message
news:emsP5h6KIHA.2176@TK2MSFTNGP06.phx.gbl...
> Hi All,
>
> I maintain some software that is used for data acquisition. This code
> has been in wide for a long time. Now, a user tells me that he must
> 'lock' his PC using a password protected screen saver, and that once
> unlocked, he finds that the code is returning corrupted data, or has
> locked up :-(!
>
> How can I find out more about what is happening here, and what fixes I
> might implement to solve the problem? Are there any 'gotcha's'
> associated with screen savers and VB6??
>
> BTW, I assume that applications are supposed to continue uninterrupted
> when the screen saver is active, is that correct, or are they suspended??
>

You need to gather a bit more information concerning the actual "password
protected screen saver". Some are simple GUI blockers - some are actually
hibernating/suspending processes. (Find out what he is using.)

So yes it is quite possible for your application to have problems if it is
assuming a constant database/network connection or other resources, and you
don't account for possible hibernation/suspension.

The cure is simple enough, just rework your app to catch the system messages
and take appropriate action.

-ralph
Author
20 Nov 2007 10:49 PM
John Morley
Ralph wrote:
Show quoteHide quote
> "John Morley" <jmorley@nospamanalysistech.com> wrote in message
> news:emsP5h6KIHA.2176@TK2MSFTNGP06.phx.gbl...
>
>>Hi All,
>>
>>I maintain some software that is used for data acquisition. This code
>>has been in wide for a long time. Now, a user tells me that he must
>>'lock' his PC using a password protected screen saver, and that once
>>unlocked, he finds that the code is returning corrupted data, or has
>>locked up :-(!
>>
>>How can I find out more about what is happening here, and what fixes I
>>might implement to solve the problem? Are there any 'gotcha's'
>>associated with screen savers and VB6??
>>
>>BTW, I assume that applications are supposed to continue uninterrupted
>>when the screen saver is active, is that correct, or are they suspended??
>>
>
>
> You need to gather a bit more information concerning the actual "password
> protected screen saver". Some are simple GUI blockers - some are actually
> hibernating/suspending processes. (Find out what he is using.)
>
> So yes it is quite possible for your application to have problems if it is
> assuming a constant database/network connection or other resources, and you
> don't account for possible hibernation/suspension.
>
> The cure is simple enough, just rework your app to catch the system messages
> and take appropriate action.
>
> -ralph
>
>
Hi Ralph,

Thanks, I'm attempting to get more info now!

I assume that if the screen saver is a simple 'GUI blocker' that my
application should continue to run unaffected - is that correct?

I further assume that if the screen saver causes processes to hibernate
or suspend that I need to detect this and stop collecting data - is that
correct?

At the risk of sounding like a neophyte, if the screen saver falls into
the second category, what is the 'system message' I need to catch, and
how do I catch it?

Thanks,

John
Author
20 Nov 2007 11:47 PM
PeterD
On Tue, 20 Nov 2007 13:37:31 -0600, "Ralph"
<nt_consultin***@yahoo.com> wrote:

Show quoteHide quote
>
>"John Morley" <jmorley@nospamanalysistech.com> wrote in message
>news:emsP5h6KIHA.2176@TK2MSFTNGP06.phx.gbl...
>> Hi All,
>>
>> I maintain some software that is used for data acquisition. This code
>> has been in wide for a long time. Now, a user tells me that he must
>> 'lock' his PC using a password protected screen saver, and that once
>> unlocked, he finds that the code is returning corrupted data, or has
>> locked up :-(!
>>
>> How can I find out more about what is happening here, and what fixes I
>> might implement to solve the problem? Are there any 'gotcha's'
>> associated with screen savers and VB6??
>>
>> BTW, I assume that applications are supposed to continue uninterrupted
>> when the screen saver is active, is that correct, or are they suspended??
>>
>
>You need to gather a bit more information concerning the actual "password
>protected screen saver". Some are simple GUI blockers - some are actually
>hibernating/suspending processes. (Find out what he is using.)
>
>So yes it is quite possible for your application to have problems if it is
>assuming a constant database/network connection or other resources, and you
>don't account for possible hibernation/suspension.
>
>The cure is simple enough, just rework your app to catch the system messages
>and take appropriate action.
>
>-ralph

Isn't the password protectino bit built into Windows, not the screen
saver?

That said, I wonder if this particular user also has (perhaps at the
same time) turned on power saving/hibernate and that is what is
causing the problems?
Author
21 Nov 2007 12:49 AM
Karl E. Peterson
PeterD wrote:
> Isn't the password protectino bit built into Windows, not the screen
> saver?

On NT system, yes.  On 9x, no.  In the latter, screensavers may be passed /a on the
command line, and need to do this:

   Case "/a"
      If m_Win9x Then
         ' NT: Ignore (shouldn't happen) under any version.
         ' 9x: Show the change password dialog.
         Call PwdChangePassword("SCRSAVE", GetForegroundWindow(), 0&, ByVal 0&)
      End If
--
..NET: It's About Trust!
http://vfred.mvps.org