Project: SWT
Bug 44063 Clipboard of GTK on KDE : Eclipse crash
Reported: 2003-10-02 06:04:31 | Status: closed fixed

When Clipboard.getAvailableTypeNames() is called on GTK/Linux with KDE system ( not GNOME ), it causes Eclipse platform to get crashed. Looks like in this function, somehow OS.gdk_atom_name(atoms[i]) returns 0 and passing 0 to OS.strlen() causes segv. Here is how to: 1) Install the attached plugin on GTK/Linux Eclipse with KDE. 2) Run eclipse 3) If "Try me" is not in the menu, Window > Customize Perspective ... > Other > Try me needs to be checked. 4) Try me > Clipboard

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/Clipboard.java