Windows Issue 4 - Aborts under WinXP

"Ken Koehler" <[email protected]>
Newsgroups gmane.comp.emulators.tn5250
Message-ID <[email protected]>
   A user was having problems where TN5250 v0.17.4 aborted reguarly.
   After grilling the user, getting a trace from his session and googling for
   WinXP and BitBlt, where the error ocurrs, I figured it all out.

   In short: WinXP "protects" the screen while Ctr-Alt-Del panel shows, when
   manually Locked by the user, when screensaver prompts for password. While
   protected WinXP issues constant WM_PAINT events to the application. When
   TN5250 tries to repaint the screen WinXP punishes it for trying to write
   to a protected screen (BitBlt fails with 6 Invalid Handle). When the
   screen is no longer protected everything works fine again.

   I'm new to Windows screen handling so I'm not sure what the best way to
   handle this is.
   - Looping forever with a Sleep() worked fine but that doesn't sound like
   good programming.
   - Bailing from the above loop and ignoring the error worked fine. Sounds
   sloppy.
   - Bail out of the WM_PAINT (winterm.c) with a non-zero return code. Sounds
   most proper but I can't even try that till next week.

   Does someone with windows screen handling experience have advice on the
   most proper way of correcting the problem?

   ------- Click on this link, and when the site opens, click on the purple
   box that says: Feed an Animal for free.
   http://www.theanimalrescuesite.com
   Verification: http://www.snopes.com/inboxer/charity/animalrescue.asp

    
-- 
This is the Linux 5250 Development Project (LINUX5250) mailing list
To post a message email: LINUX5250-Zwy7GipZuJhWk0Htik3J/[email protected]
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/linux5250
or email: LINUX5250-request-Zwy7GipZuJhWk0Htik3J/[email protected]
Before posting, please take a moment to review the archives
at http://archive.midrange.com/linux5250.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.