texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Texmacs-dev] RE: Texmacs segfault


From: Joris van der Hoeven
Subject: Re: [Texmacs-dev] RE: Texmacs segfault
Date: Wed, 16 Oct 2002 13:30:27 +0200 (MET DST)

> I added the following piece of code to src/Edit/Interface/edit_interface.cc
> in function void edit_interface_rep::handle_clear(clear_event ev) :
> -------------------------------------------------------------------
>    win->set_background (dis->get_color (bg));
> +
> + if (nil(eb))
> +     cerr << "edit_interface.cc : eb is NULL\n" << endl;
> +
>    win->clear (max (eb->x1, X1), max (eb->y1, Y1),
>                min (eb->x2, X2), min (eb->y2, Y2));
> -------------------------------------------------------------------
> 
> So the crash I see is now isolated to this piece of code.
> Here a NULL eb rep is dereferenced in the first call to max().
> As I mentioned in previous mail the "-d" or "-e" command line args
> are sufficient for this to not happen at all.
> 
> I see that this code will be rewritten soon, but
> in the mean time any ideas?

Please try to win->clear (X1, Y1, X2, Y2) in the case when nil(eb).





reply via email to

[Prev in Thread] Current Thread [Next in Thread]