Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » DDE Conflict (Excel/Bloomberg)
DDE Conflict (Excel/Bloomberg) [message #464199] Fri, 18 November 2005 15:40 Go to next message
David Mechner is currently offline David MechnerFriend
Messages: 13
Registered: July 2009
Junior Member
Hi,

I have an SWT application that seems to be interfering in some way with
an Excel/Bloomberg DDE link (WinXP). The behavior seems to be 100%
reproducible, and was demonstrated to me fairly convincingly:

Excel is used to connect to Bloomberg - it is getting, for example, live
prices on some stock. Then our SWT app is launched, and the Excel
updating stops and shows an hourglass. Our app is closed, the Excel
hourglass disappears, and the updating resumes (perhaps after a command
to excel to redisplay).

Ours is a fairly simple SWT GUI app - it makes an outgoing socket
connection to a remote server (unrelated to Bloomberg), uses no native
libraries besides SWT, and makes no use of DDE or anything fancy like
that. It also makes use of some JFace stuff (e.g. dialogs).

I know very little about DDE, and can't imagine might be causing this
besides SWT. Does this ring a bell with anybody? Can anyone imagine what
might be doing it? Also, apologies if I've posted this is the wrong
group: please point me in the right direction.

Thanks,
-David Mechner
Re: DDE Conflict (Excel/Bloomberg) [message #464229 is a reply to message #464199] Fri, 18 November 2005 20:00 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
SWT doesn't do anything with DDE, however DDE is an ancient low level system
service that is tied into the event loop. It's possible we are doing
something funny down deep that blows DDE's mind. I remember all kinds of
strange bugs dimly when I implemented DDE support in Smalltalk way back
when. Are you sure you are sleeping in order to allow other applications to
run?

Anyways, with no example code and nothing to debug, I can't suggest anything
other than hacking Display.readAndDispatch(). Try this instead on Windows
for an event loop:

MSG msg = new MSG ();
while (OS.GetMessage (msg, 0, 0, 0)) {
OS.TranslateMessage (msg);
OS.DispatchMessage (msg);
}

SWT windows should draw but menus and selection will not work. Is the DDE
problem solved?

"David Mechner" <eclipse@pragmafs.com> wrote in message
news:dlkskf$nbj$1@news.eclipse.org...
> Hi,
>
> I have an SWT application that seems to be interfering in some way with
> an Excel/Bloomberg DDE link (WinXP). The behavior seems to be 100%
> reproducible, and was demonstrated to me fairly convincingly:
>
> Excel is used to connect to Bloomberg - it is getting, for example, live
> prices on some stock. Then our SWT app is launched, and the Excel
> updating stops and shows an hourglass. Our app is closed, the Excel
> hourglass disappears, and the updating resumes (perhaps after a command
> to excel to redisplay).
>
> Ours is a fairly simple SWT GUI app - it makes an outgoing socket
> connection to a remote server (unrelated to Bloomberg), uses no native
> libraries besides SWT, and makes no use of DDE or anything fancy like
> that. It also makes use of some JFace stuff (e.g. dialogs).
>
> I know very little about DDE, and can't imagine might be causing this
> besides SWT. Does this ring a bell with anybody? Can anyone imagine what
> might be doing it? Also, apologies if I've posted this is the wrong
> group: please point me in the right direction.
>
> Thanks,
> -David Mechner
Previous Topic:How to disable View Resize
Next Topic:ICellEditorValidator problem
Goto Forum:
  


Current Time: Fri Mar 29 11:51:17 GMT 2024

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

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

Back to the top