|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Program 'hangs' on password protected screensaver.....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
Show quote
Hide quote
"John Morley" <jmorley@nospamanalysistech.com> wrote in message You need to gather a bit more information concerning the actual "passwordnews: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?? > 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 Ralph wrote:
Show quoteHide quote > "John Morley" <jmorley@nospamanalysistech.com> wrote in message Thanks, I'm attempting to get more info now!> 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, 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 On Tue, 20 Nov 2007 13:37:31 -0600, "Ralph"
<nt_consultin***@yahoo.com> wrote: Show quoteHide quote > Isn't the password protectino bit built into Windows, not the screen>"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 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? PeterD wrote:
> Isn't the password protectino bit built into Windows, not the screen On NT system, yes. On 9x, no. In the latter, screensavers may be passed /a on the > saver? 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
Log file access
Unknown error 50003 DDE Problem problems with packaging and deploying VB6 Some Trouble with SSTAB and ComboBoxes List proceedure names all files Problems creating a recordset with a Command-Object Question in exe size..RESOLVED How to call an event when the "Delete" button is pressed? Objects & Binding |
|||||||||||||||||||||||