> I am using the Plkugin-SDK to develop a plugin. An error
> message I am getting when making a call to NPN_GetURL comes
> up in a stdout/stderr popup window with the folowing text:
> "Xlib: unexpected async reply recieved"
> I am developing on SunOS Release 5.5 Version Generic_103093-14
> [UNIX(R) System V Release 4.0], which uses OSF Motif widget set.
> Researching this problem, I've found
> which states that "...The versions of Motif from OSF, for example,
> offer no support for multi-threading."
> Has anyone experienced this? If so, is there a solution or
> work around to this problem?
this issue from the Unix community since Unix is supposed to be
the "robust" and "powerful" OS, as compared to Microsoft (which
doesn't have a problem with it.) The answer: multiple threads
can't generate XEvents if you expect it to work. If you leave
a main thread running to handle the GUI, and one or more threads
can update the window, etc then you have multiple paths.
Some things to try to get rid of it:
1) Get rid of the main loop. Do message processing inside the
subthread. This seems to get rid of most of em...
2) Have the subthreads pass ClientMessages to the main thread,
which can then generate the appropriate events for the subthreads.
It's messy, but worked in one situation I had.