I have looked at Motif problems, and at least one is fixed
now.  Let me recall (as Aaron wrote) that the following
commands in pop11:

uses rc_graphic;
rc_start();

and clicking on window delete button kills Poplog linked
to Motif (should only kill window and Poplog should be
running).

There are actually a few separate issues releated to this.
First, in V16 ATM startup image is really minimal.  'rc_graphic'
alone does not install event handler for 'delete window'
event.  Consequently, we get default toolkit action.
In Xt (X toolkit) this action seem to be closing window.
In Motif this seem to be killing the whole program.

Long ago Aaron wrote that:

rc_destroy_widget(rc_window);

works correctly.  However, in V16, using commands above
it fails because 'rc_destroy_widget' is not loaded.

To install event handler one needs to load another
library.  For testing I used the following:

uses rc_graphic;
uses rclib;
uses rc_mousepic;
rc_start();

With this sequence typically clicking on window delete
button did nothing, sometimes it killed Poplog.
Also

rc_destroy_widget(rc_window);

killed Poplog.

Problem with 'rc_destroy_widget' was because 'rc_destroy_widget'
apparently called Poplog event handler, but handler did not
recognize the event and we again got default toolkit
behaviour.  Debugging this was tedious, because most routines
were in startup saved image and debugging printouts or other
chenges were only effective after rebuilding saved images.

Anyway, event was not recognized because Poplog used wrong
declaration of corresponding event structure.  This is
now fixed in git repo.  The same problem appeared using Xt
(X toolkit).  But because default action in Xt is to
kill window, the problem was less visible.

Now, 'rc_destroy_widget' works OK: kill window and leaves
Poplog running.  Still, there is problem with events,
most to the time event handler is not called.  I was
not able to find any regularity...

To summarize, one problem (unrecgnized event) is fixed.

The problems with dependencies are really more general
and have nothing to do with Motif or AMD64.

Problem that apparently events are ignored looks
strange.  Namely, if we do not install handler, than
clicking on window delete button gives repeatable
effect.  So, installing event handler has some effect.
But for some reason most of the time handler is not
called...

-- 
                              Waldek Hebisch

Reply via email to