Solved

Capturing X Bad Window events.

Posted on 1997-12-08
3
162 Views
Last Modified: 2013-12-26
How (if posible) can I capture Bad Window events.  They just stop my program dead.  They will only happen once in a million years so I'm told but I would still like to capture them.

Thanks,  Tim.
0
Comment
Question by:tims
  • 2
3 Comments
 

Author Comment

by:tims
ID: 1295757
Edited text of question
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 100 total points
ID: 1295758
Your window's event handler must catch all possible events,
using XNextEvent, XPeekEvent, IfEvent, CheckIfEvent, etc. etc. .
A lot of work for "once in a million years" :(
May be you can do it useing: XCheckMaskEvent, XCheckTypedEvent, XCheckWindowEvent, etc. etc. .
0
 

Author Comment

by:tims
ID: 1295759
Thanks.  Catching all events slows it down just a tad but it maybe enough to talk my boss into letting the uncommon error go.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
cat dog challenge 18 122
Pressing cancel button with C# UI Automation 3 40
format the code in java 6 72
canBalance challenge 34 65
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now