[comp.windows.x] Problem with XtDisplayToApplicationContext

net@tub.UUCP (Oliver Laumann) (02/14/90)

The documentation of XtDisplayToApplicationContext() says "If the display
is not known to the Intrinsics, an error message is issued".  However,
XtDisplayToApplicationContext() drops core when it is invoked with a
display not known to Xt (at least when no other display is known to Xt,
i.e. when the internal display list is empty).

The culprit is the macro _XtGetPerDisplay in mit/lib/Xt/InitialI.h.
It doesn't check whether the display list is empty.

Regards,
--
Oliver Laumann     net@TUB.BITNET     net@tub.cs.tu-berlin.de     net@tub.UUCP