Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] SWT_AWT bridge enhancements for dual-process approaches

> Very cool.  Dual process is an interested way to get around some of the
> interop problems people are seeing.  Is there a new process per DJ
> NativeSwing control or a server set up for all of them?

The init method spawns a new VM, and all SWT controls are created on
that remote VM. It also takes care of the event pumping in its main
thread.

Note that the dual approach also allows certain recovery features. If
the remote VM dies (someone kills it, a misbehaving plugin crashes,
etc.), components display an error message but the local VM does not
freeze. Moreover the remote VM is recreated for future components to
work and a listener allows to get interface restart events
(application-level logic could re-create dead components).

-Christopher


Back to the top