[comp.windows.x] XView-Resizing Split Windows

rick@pbi.COM (Richard M. Goldstein) (02/19/91)

to whomever it may interest-


does anybody have a reasonable workaround for the bug in
XView2.0 that causes an X protocol error when you resize
a split window such that one of the views is no longer
visible?  I don't consider "don't resize a split window"
a reasonable solution for a commercial application.

the bug seems to come from the openwin package that does
the splits and propagates the problem to the textsw and
the canvas packages.  in the source, there seems to be
an attempt to check for this condition (openwin_adjust
_views() ), but somewhere down the lines, someone
seems to call XConfigureWindow() with a 0 value or some
such.

the error is:

X Error:  BadAlloc
Request Major code 12 ()
Request Minor code 1
ResourceID 0x0
Error Serial #3164
Current Serial #3166


thanx-

rick

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                %
% Richard M. Goldstein                           %
%                                                %
% Perfect Byte, Inc.       Phone:  (402)554-1122 %
% 7121 Cass St.            Fax:    (402)554-1938 %
% Omaha, NE 68132          email:  rick@pbi.com  %
%                                                %
% "If I knew what I was doing,                   %
%       d'ya think I'd be in Omaha?"             %
%                                                %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%