Alexander Mai wrote:
> Well, I'm user of both packages and together wit Rob I tried to
> look at it. Unfortunately it doesn't happen for me with the same
> versions of grace and lesstif. Main difference is the OS which are
> different linux distributions on i86, perhaps also further
> setup details.
My setup is SuSE 6.4 with some updates and mods. Is this the
same/similar as the platform with the problem ?

> I omit the details on how to reproduce it (for the experts:
> just get some text written in the results window and clear it),
> but to sum up yet, we need help and new ideas where to look any further ...
> 
> Here are some details:
> 
[snip]

> The "clear results window" action is linked to a callback (clear_results())
> which is simply:
>   XmTextSetString(monText, "");
> We once tried
>   XmTextSetString(monText, " ")
> but that does not help. Crash still occurs.
As a matter of interest did you try skipping this call in the debugger ( just to
see if this call was not the problem ) ?

Also you could try using a different call ( e.g. XmTextReplace, or 
XtVaSetValues )?

[snip]
> (gdb) p *monText
> $2 = {core = {self = 0x8280678, widget_class = 0x401e0a00, parent =
> 0x82804e0,
>     xrm_name = 245, being_destroyed = 0 '\000', destroy_callbacks =0x827db40,
>     constraints = 0x0, x = 0, y = 0, width = 578, height = 158,
>     border_width = 0, managed = 1 '\001', sensitive = 1 '\001',
>     ancestor_sensitive = 1 '\001', event_table = 0x8280810, tm = {
>       translations = 0x8229138, proc_table = 0x8282eb8, current_state =0x0,
>       lastEventTime = 613506900}, accelerators = 0x0, border_pixel = 0,
>     border_pixmap = 2, popup_list = 0x0, num_popups = 0,
>     name = 0x8180faf "monText", screen = 0x8187ad8, colormap = 33,
>     window = 46138402, depth = 16, background_pixel = 53052,
>     background_pixmap = 2, visible = 1 '\001', mapped_when_managed = 1'\001'}}

GDB hint :
        to cast data in a print statement:
        print {cast-to}uncast-type ( i.e. print *{XmTextWidget}monText )

CP

Reply via email to