 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Eoin O'Cinneide Guest
|
Posted: Mon Nov 22, 2004 9:18 am Post subject: JBuilder9 freezing at breakpoint |
|
|
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
|
|
| Back to top |
|
 |
Lori M Olson [TeamB] Guest
|
Posted: Mon Nov 22, 2004 5:42 pm Post subject: Re: JBuilder9 freezing at breakpoint |
|
|
Eoin O'Cinneide wrote:
| Quote: |
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
|
Have you installed the available patches for JB9? If you have, good.
If you haven't just wait... They seem to have disappeared off the
Borland website. I'm tracking that down now.
On a version of JBuilder that old, you are unlikely to get any new
bugfixes or patches if this turns out to be unfixed by the current
patches. You could always download the current version of JBuilder, and
try it out to see if this problem exists in the new version. If it
does, then you can make a bug report in Quality Central.
To report a "hanging" problem like this, you need a thread dump. On
Windows, you get this by running JBuilder.exe (instead of JBuilderW.exe)
which gives you a console window (just like java.exe vs javaw.exe).
Then, repeat the steps to duplicate your problem. When you reach the
"hang", you can produce a thread dump in the console window by typing
"Ctrl-Break". Then you can post that dump. Posting a whole project,
including the steps needed to duplicate this problem would be even better.
--
Regards,
Lori Olson [TeamB]
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
|
|
| Back to top |
|
 |
Lori M Olson [TeamB] Guest
|
|
| Back to top |
|
 |
Eoin O'Cinneide Guest
|
Posted: Wed Nov 24, 2004 11:11 am Post subject: Re: JBuilder9 freezing at breakpoint |
|
|
I've upgraded to 2005, but I'm still having the same problem.
I've done a thread dump, and am prepared to send the project and source
files if needs be.
Should I post them to this newsgroup?
Eoin
"Lori M Olson [TeamB]" <javadragon (AT) techie (DOT) com> wrote
|
|
| Back to top |
|
 |
Lori M Olson [TeamB] Guest
|
Posted: Wed Nov 24, 2004 3:56 pm Post subject: Re: JBuilder9 freezing at breakpoint |
|
|
Eoin O'Cinneide wrote:
| Quote: | I've upgraded to 2005, but I'm still having the same problem.
I've done a thread dump, and am prepared to send the project and source
files if needs be.
Should I post them to this newsgroup?
Eoin
|
The only one of these newsgroups that allows attachments is the
borland.public.attachments group. But I wouldn't post it there. This
sounds like a bug, not just some settings problem. You can use Tools |
Quality Central to create a new bug report, and you can attach files to
bug reports.
--
Regards,
Lori Olson [TeamB]
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
|
|
| Back to top |
|
 |
Eoin O'Cinneide Guest
|
Posted: Tue Nov 30, 2004 2:12 pm Post subject: Re: JBuilder9 freezing at breakpoint |
|
|
Thanks,
I've done that, but how long does it normally take to get any kind of reply?
Eoin
"Lori M Olson [TeamB]" <javadragon (AT) techie (DOT) com> wrote
| Quote: | Eoin O'Cinneide wrote:
I've upgraded to 2005, but I'm still having the same problem.
I've done a thread dump, and am prepared to send the project and source
files if needs be.
Should I post them to this newsgroup?
Eoin
The only one of these newsgroups that allows attachments is the
borland.public.attachments group. But I wouldn't post it there. This
sounds like a bug, not just some settings problem. You can use Tools |
Quality Central to create a new bug report, and you can attach files to
bug reports.
--
Regards,
Lori Olson [TeamB]
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
|
|
|
| Back to top |
|
 |
SkyHawk Guest
|
Posted: Tue Jan 11, 2005 10:03 pm Post subject: Re: JBuilder9 freezing at breakpoint |
|
|
It seems, a long time, just for anyone to answer this question.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|