Crash: blocking JS and deleting a window

Koos Vriezen koos.vriezen at xs4all.nl
Sat Oct 5 17:23:12 BST 2002


On Sat, 5 Oct 2002, Simon Hausmann wrote:

> On Sat, Oct 05, 2002 at 03:27:41PM +0200, Koos Vriezen wrote:
> >
> > Well, if this modal dialog can be solved elsewhere, we might not need a
> > canDelete event if this ugly synchronization in KJavaAppletServer can be
> > implemented differently:
> >     while (!frame->ready && --count > 0) {
> >         usleep(50000);
> >         qApp->processEvents(100);
> >     }
>
> Ouch, processEvents. I wish this method would never have gotten
> public, never ever. It makes nothing but trouble when people use it
> :-(

Well, I did try to use 'select' on the stdin fd of jvm, but that breaks
JS->Java->JS calls. The last JS doesn't get evaluated because khtml still
is in the select for the return value to arrive.

Koos





More information about the kfm-devel mailing list