Bug 98773 - [DND] org.eclipse.swt.SWTError: Cannot initialize Drop
Summary: [DND] org.eclipse.swt.SWTError: Cannot initialize Drop
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Duong Nguyen CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-07 14:08 EDT by karl pietri CLA
Modified: 2007-07-16 15:40 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description karl pietri CLA 2005-06-07 14:08:59 EDT
Error in azureus that seems to be a problem with swt and not azureus.  On amd 64
running windows xp 32 bit 

 org.eclipse.swt.SWTError: Cannot initialize Drop
        at org.eclipse.swt.dnd.DND.error(DND.java:220)
        at org.eclipse.swt.dnd.DND.error(DND.java:181)
        at org.eclipse.swt.dnd.DropTarget.<init>(DropTarget.java:139)
        at org.gudy.azureus2.ui.swt.mainwindow.MainWindow.createDropTarget(MainW
indow.java:925)
Comment 1 Billy Biggs CLA 2005-06-07 16:32:26 EDT
On IRC I got the impression that this has only been seen on amd64 machines and
not on x86 machines (although all are running 32 bit Windows), is that correct?
Comment 2 karl pietri CLA 2005-06-08 07:35:32 EDT
yes thats correct.
Comment 3 Veronika Irvine CLA 2005-06-08 08:26:32 EDT
What version of eclipse are you running?  I can give you a modified SWT plugin 
to gather more information but I need to know what version to build against.
Comment 4 Jacek Pospychala CLA 2007-06-27 12:28:53 EDT
Veronica, do you still have this special swt version?
I'd be interested in resolving this issue.

Looks like there is couple of somehow related bugs, that are still NEW:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=161893
https://bugs.eclipse.org/bugs/show_bug.cgi?id=110166
https://bugs.eclipse.org/bugs/show_bug.cgi?id=98773
https://bugs.eclipse.org/bugs/show_bug.cgi?id=76449
https://bugs.eclipse.org/bugs/show_bug.cgi?id=42292
Comment 5 Duong Nguyen CLA 2007-06-27 14:12:17 EDT
Unfortunately, Veronika is no longer on the SWT team. The defect has been assigned to me but I don't have much luck trying to replicate it. May be we can resolve it if we don't hear back from the original reporter.
Comment 6 ArronM CLA 2007-07-10 13:40:54 EDT
As a developer for Azureus, I'm inclined to suggest to close this bug, as at least from Azureus' perspective, this is not necessarily an error.

Creating a drop target has different effects on each platform (or at least is used to, I haven't checked lately).  On some platforms, creating the droptarget on the composite will propogate it down to all it's children (meaning you can drag something onto a child and have the parent get the drop event).  Others platforms do not do this.  Some platforms don't allow creating a droptarget if any parent control already has a droptarget.

Also, in some cases, Azureus will just try to create a DropTarget, catch the error, spew it and carry on, which is why I'm suggesting this may not be a SWT bug per se.

Comment 7 Steve Northover CLA 2007-07-16 13:15:16 EDT
I suggest we close this bug report then.  

The other issues that you mention should have been fixed quite a while ago.  If you are still seeing them, please open a bug report for each one.
Comment 8 Jacek Pospychala CLA 2007-07-16 15:33:03 EDT
I agree to close. I was working with someone also having this problem, but currently have no feedback. I'll create new bug if new response will come.
Thanks for help Steve & Duong!
Comment 9 Steve Northover CLA 2007-07-16 15:40:08 EDT
WORKSFORME