|Re: Automatic restart of crashed OLE Object [message #504587 is a reply to message #504318]
||Mon, 21 December 2009 16:08
| Grant Gayed
Registered: July 2009
swt's ole implementation does not have anything in place that would do this
automatically. Looking at swt's implementation, the only place that
OleCreate* is called with the program id is in the OleClientSite
constructors. I'm not an OLE expert, but based on this I think the best
that could be hoped for would be for you to detect the crash somehow and
then dispose the OleClientSite and create a new one.
I'm not sure how you would detect the crash though. Maybe ping it
periodically somehow (would doing this to a crashed app result in an swt
crash)? Hopefully someone else has another idea here. swt's ole owner is
away until the new year, so if there aren't any better suggestions in the
meantime then I'll see if he has a suggestion for helping your case.
"Juergen Weber" <email@example.com> wrote in message
> I tried the Open an OLE Excel sheet snippet from
> Then I killed EXCEL.EXE from Taskmanager and looked what happened. Looks
> like the SWT frame is still running, the Excel menus are still there, but
don't work any more, the Excel content ist gone.
> Is it possible to have Excel restart automatically?
> Background: We have a JNI-Module that crashes a lot and takes the Java
> VM down with it. Idea is to make the JNI-Module an ActiveX Control,
> and embed it into Eclipse like the snippet. Of course, Eclipse should
> survive and restart the ActiveX Control.
> Would that be possible?
Powered by FUDForum
. Page generated in 0.01685 seconds