Pages with Java don't like being left

Koos Vriezen koos.vriezen at xs4all.nl
Mon Aug 19 10:33:01 BST 2002


On Mon, 19 Aug 2002, Dirk Mueller wrote:

> On Son, 18 Aug 2002, Koos Vriezen wrote:
>
> > Beter use ref/deref in KJavaAppletContext. Attached a patch which does so.
> > Ok to commit?
>
> Either that, or deleteLater() for the javaContext in khtmlpart as well.
>
> The refcounting variant has the disadvantage that when you're going to
> subclass it you can't have anything in their destructors, because they'll
> never get called.

And deleteLater in khtmlpart, you have to be sure its scheduled later than
that of the KJavaApplet (and Qt not doing any reordering of its queue).

Destructors not being called.....Hmm, is that an optimalization not to
make this destructor virtual?

  public:
      Shared() { _ref=0; /*counter++;*/ }
      ~Shared() { /*counter--;*/ }

Koos





More information about the kfm-devel mailing list