Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Question about SWT_AWT deadlock issues
Question about SWT_AWT deadlock issues [message #447260] Fri, 10 December 2004 22:52 Go to next message
Jim Adams is currently offline Jim AdamsFriend
Messages: 160
Registered: July 2009
Senior Member
Does anyone know of any issues with deadlock when an AWT Dialog is used? I
have a situation with an RCP app with lots of legacy code. I created an
embedded frame and stuck it in my app and use that as the parent for all the
AWT Dialogs. Before I was using the embedded Frame I was just creating one
and throwing it away. This worked fine except for the stacking order. Using
the embedded frame fixes that stacking order but everything hangs. Ideas?
Re: Question about SWT_AWT deadlock issues [message #447362 is a reply to message #447260] Mon, 13 December 2004 18:21 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Are you using asyncExec() to talk from SWT to AWT?

"Jim Adams" <Jim.Adams@sas.com> wrote in message
news:cpd9c8$vat$1@www.eclipse.org...
> Does anyone know of any issues with deadlock when an AWT Dialog is used? I
> have a situation with an RCP app with lots of legacy code. I created an
> embedded frame and stuck it in my app and use that as the parent for all
the
> AWT Dialogs. Before I was using the embedded Frame I was just creating one
> and throwing it away. This worked fine except for the stacking order.
Using
> the embedded frame fixes that stacking order but everything hangs. Ideas?
>
>
Re: Question about SWT_AWT deadlock issues [message #447364 is a reply to message #447362] Mon, 13 December 2004 18:51 Go to previous messageGo to next message
Jim Adams is currently offline Jim AdamsFriend
Messages: 160
Registered: July 2009
Senior Member
In this case, when would you use Asyncexec? When calling show on the dialog?

"Steve Northover" <steve_northover@ca.ibm.com> wrote in message
news:cpkmjk$mgo$1@www.eclipse.org...
> Are you using asyncExec() to talk from SWT to AWT?
>
> "Jim Adams" <Jim.Adams@sas.com> wrote in message
> news:cpd9c8$vat$1@www.eclipse.org...
> > Does anyone know of any issues with deadlock when an AWT Dialog is used?
I
> > have a situation with an RCP app with lots of legacy code. I created an
> > embedded frame and stuck it in my app and use that as the parent for all
> the
> > AWT Dialogs. Before I was using the embedded Frame I was just creating
one
> > and throwing it away. This worked fine except for the stacking order.
> Using
> > the embedded frame fixes that stacking order but everything hangs.
Ideas?
> >
> >
>
>
Re: Question about SWT_AWT deadlock issues [message #447369 is a reply to message #447364] Mon, 13 December 2004 21:07 Go to previous messageGo to next message
Jim Adams is currently offline Jim AdamsFriend
Messages: 160
Registered: July 2009
Senior Member
ok. I put the code that starts the dialog into an InvokeLater per Selenio's
remark on bug 72073. However, I don't see how you can create a Modal dialog
in this situation since InvokeLater returns immediately. The whole point of
Dialog.show() is to not return until the dialog goes away. Any ideas on how
to get the modality back?

"Jim Adams" <Jim.Adams@sas.com> wrote in message
news:cpkoc0$s1l$1@www.eclipse.org...
> In this case, when would you use Asyncexec? When calling show on the
dialog?
>
> "Steve Northover" <steve_northover@ca.ibm.com> wrote in message
> news:cpkmjk$mgo$1@www.eclipse.org...
> > Are you using asyncExec() to talk from SWT to AWT?
> >
> > "Jim Adams" <Jim.Adams@sas.com> wrote in message
> > news:cpd9c8$vat$1@www.eclipse.org...
> > > Does anyone know of any issues with deadlock when an AWT Dialog is
used?
> I
> > > have a situation with an RCP app with lots of legacy code. I created
an
> > > embedded frame and stuck it in my app and use that as the parent for
all
> > the
> > > AWT Dialogs. Before I was using the embedded Frame I was just creating
> one
> > > and throwing it away. This worked fine except for the stacking order.
> > Using
> > > the embedded frame fixes that stacking order but everything hangs.
> Ideas?
> > >
> > >
> >
> >
>
>
Re: Question about SWT_AWT deadlock issues [message #447629 is a reply to message #447369] Wed, 15 December 2004 15:30 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Can you post a snippet?

"Jim Adams" <Jim.Adams@sas.com> wrote in message
news:cpl0ci$m63$1@www.eclipse.org...
> ok. I put the code that starts the dialog into an InvokeLater per
Selenio's
> remark on bug 72073. However, I don't see how you can create a Modal
dialog
> in this situation since InvokeLater returns immediately. The whole point
of
> Dialog.show() is to not return until the dialog goes away. Any ideas on
how
> to get the modality back?
>
> "Jim Adams" <Jim.Adams@sas.com> wrote in message
> news:cpkoc0$s1l$1@www.eclipse.org...
> > In this case, when would you use Asyncexec? When calling show on the
> dialog?
> >
> > "Steve Northover" <steve_northover@ca.ibm.com> wrote in message
> > news:cpkmjk$mgo$1@www.eclipse.org...
> > > Are you using asyncExec() to talk from SWT to AWT?
> > >
> > > "Jim Adams" <Jim.Adams@sas.com> wrote in message
> > > news:cpd9c8$vat$1@www.eclipse.org...
> > > > Does anyone know of any issues with deadlock when an AWT Dialog is
> used?
> > I
> > > > have a situation with an RCP app with lots of legacy code. I created
> an
> > > > embedded frame and stuck it in my app and use that as the parent for
> all
> > > the
> > > > AWT Dialogs. Before I was using the embedded Frame I was just
creating
> > one
> > > > and throwing it away. This worked fine except for the stacking
order.
> > > Using
> > > > the embedded frame fixes that stacking order but everything hangs.
> > Ideas?
> > > >
> > > >
> > >
> > >
> >
> >
>
>
Previous Topic:Problem with ON_TOP and SHELL_TRIM
Next Topic:Capturing *all* key events
Goto Forum:
  


Current Time: Thu Mar 28 12:12:25 GMT 2024

Powered by FUDForum. Page generated in 0.03453 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top