Article View: comp.windows.interviews
Article #176Re: Menu crashing in IV 3.1 beta
From: Joerg Ringel
Date: Thu, 06 Aug 1992 06:38
Date: Thu, 06 Aug 1992 06:38
34 lines
1537 bytes
1537 bytes
>I have been experiencing intermittent crashes when popping up menus in
>IV 3.1 beta. The backtrace is in _XSetClipRectangles from the display
>repair loop. It appears that the repair code is trying to use Window
>structures before the window is actually mapped. If I run with the
>"-synchronous" flag, the errors go away.
I've had the same problem with other functions (scrolling before mapping).
To be sure that the window is mapped, I've inserted the
following code.
Event e;
window->map();
window->display()->sync();
while (!window->is_mapped()) {
Session::instance()->read(e);
e.handle();
}
Event e;
window->map();
window->display()->sync();
while (!window->is_mapped() || Session::pending()) {
Session::instance()->read(e);
e.handle();
}
The bottom code works if I map the ApplicationWindow and the top one
work for the other windows, but I can't say why !?
joerg ringel
ringel@forwiss.uni-passau.de
Technical Details
Message-ID:
<1992Aug6.063814.9219@tom.rz.uni-passau.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!math.fu-berlin.de!zrz.tu-berlin.de!cs.tu-berlin.de!fauern!rz.uni-passau.de!forwiss.uni-passau.de!ringelShow Full Headers
Complete Article Headers
Newsgroups: comp.windows.interviews Path: arc1-ca.pugleaf.net!sparky!uunet!math.fu-berlin.de!zrz.tu-berlin.de!cs.tu-berlin.de!fauern!rz.uni-passau.de!forwiss.uni-passau.de!ringel From: ringel@forwiss.uni-passau.de (Joerg Ringel) Subject: Re: Menu crashing in IV 3.1 beta Message-ID: <1992Aug6.063814.9219@tom.rz.uni-passau.de> Sender: news@tom.rz.uni-passau.de (News-Operator) Nntp-Posting-Host: eldron.forwiss.uni-passau.de Organization: University of Passau, Germany Date: Thu, 6 Aug 1992 06:38:14 GMT Lines: 35