The problem seems to be that the form is freed in the callback, but libforms
tries to reach it anyway (just after the return from the callback). Maybe
it's because the callback is installed for the Close-button, and not for
the entire form.
I have a version that *works* now (i.e. doesn't crash on inseturl
specifically -- can't say if it is robust in other respects), but I need to
test it some more. (and plow through the xforms manual)
At least it doesn't look as hopeless at it did yesterday. =)
I do get problem with screen updates though (an urlinset at the far right
ends outside the margin)
--- inseturl.C.old Wed Feb 3 13:15:02 1999
+++ inseturl.C Wed Feb 3 13:12:28 1999
@@ -91,11 +91,12 @@
else
inset->flag = InsetUrl::HTML_URL;
UpdateInset(inset);
+ current_view->redraw();
}
if (inset->form) {
fl_hide_form(inset->form);
- fl_free_form(inset->form);
+ //fl_free_form(inset->form);
inset->form = NULL;
}
}
Maybe the "current_view->redraw()" isn't necessary...
I had an other problem yesterday regarding colourmaps. Nutscape was up and
ate all the colours (as usual), and LyX attempted to use a private
colourmap instead, but got shot down by the X server. (I'm sitting on some
kind of HP X-terminal "Entra plus", connected to an ultra sparc)
I'm not getting that now. ..probably nothing then (nothing we can do much
about).
Joacim
-
All programmers are playwrights and all computers are lousy actors.