Article View: borland.public.jbuilder.debugger
Article #180JBuilder9 freezing at breakpoint
From: Eoin O'Cinneide
Date: Mon, 22 Nov 2004 09:18
Date: Mon, 22 Nov 2004 09:18
44 lines
2708 bytes
2708 bytes
Hi,
I have the following code to implement drag-and-drop onto a JFrame.
//inner class to handle DropTargetEvents
private class DropTargetHandler implements DropTargetListener {
//handle drop operation
public void drop( DropTargetDropEvent event) {
//get dropped Transferable object
Transferable transferable = event.getTransferable();
//get dropped object's DataFlavors
DataFlavor[] dataFlavours = transferable.getTransferDataFlavors();
//process drops for supported types
for (int i = 0; i < dataFlavours.length; i++) {
DataFlavor dataFlavour = dataFlavours[i];
//if text is dropped
if (dataFlavour.equals(DataFlavor.stringFlavor)) {
event.acceptDrop(DnDConstants.ACTION_COPY);
String string = transferable.toString();
event.dropComplete(textArea.dropText(string));
}
//if a file is dropped
else if (dataFlavour.isFlavorJavaFileListType()) {
event.acceptDrop(DnDConstants.ACTION_COPY);
event.dropComplete(dropImage(transferable));
}
else
event.rejectDrop(); //otherwise do nothing
}
}
My problem is that if I set a breakpoint within the drop method, and drop
some text onto the JFrame, the Java app and JBuilder both freeze completely.
I can see the variables in the debugging pane, but can't access them or stop
the app.
I have to use Task Manager to kill the Java process, which then allows me
back into JBuilder. The same problem does not occur if I run the app
normally.
Can anybody help me, or should I look at upgrading my JBuilder?
Thanks,
Eoin
Technical Details
Message-ID:
<41a1af1a$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: ff5c5,2d1e033e930fa18e,start X-Google-Attributes: gidff5c5,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Eoin O'Cinneide" <eoinkennedy@hotmail.com> Newsgroups: borland.public.jbuilder.debugger Subject: JBuilder9 freezing at breakpoint Date: Mon, 22 Nov 2004 09:18:36 -0000 Lines: 46 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 149.157.246.77 Message-ID: <41a1af1a$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1101115162 149.157.246.77 (22 Nov 2004 01:19:22 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail