🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.debugger
7 messages
7 total messages Started by Eoin O'Cinneide Mon, 22 Nov 2004 09:18
JBuilder9 freezing at breakpoint
#180
Author: Eoin O'Cinneide
Date: Mon, 22 Nov 2004 09:18
44 lines
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
Re: JBuilder9 freezing at breakpoint
#181
Author: Lori M Olson [TeamB]
Date: Mon, 22 Nov 2004 17:42
53 lines
3239 bytes
Eoin O'Cinneide wrote:
> 
> 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
Re: JBuilder9 freezing at breakpoint
#182
Author: Lori M Olson [TeamB]
Date: Mon, 22 Nov 2004 20:53
30 lines
1854 bytes
Lori M Olson [TeamB] wrote:

> 
> 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.
> 

The updates are available again.

http://www.borland.com/products/downloads/registered/download_jbuilder.html#

-- 

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
Re: JBuilder9 freezing at breakpoint
#183
Author: Eoin O'Cinneide
Date: Wed, 24 Nov 2004 11:11
42 lines
2254 bytes
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@techie.com> wrote in message
news:41a251c2$1@newsgroups.borland.com...
> Lori M Olson [TeamB] wrote:
>
> >
> > 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.
> >
>
> The updates are available again.
>
>
http://www.borland.com/products/downloads/registered/download_jbuilder.html#
>
> -- 
>
> 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
>
Re: JBuilder9 freezing at breakpoint
#184
Author: Lori M Olson [TeamB]
Date: Wed, 24 Nov 2004 15:56
35 lines
2222 bytes
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
Re: JBuilder9 freezing at breakpoint
#188
Author: Eoin O'Cinneide
Date: Tue, 30 Nov 2004 14:12
42 lines
2400 bytes
Thanks,
I've done that, but how long does it normally take to get any kind of reply?

Eoin
"Lori M Olson [TeamB]" <javadragon@techie.com> wrote in message
news:41a4af2f@newsgroups.borland.com...
> 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
>
Re: JBuilder9 freezing at breakpoint
#218
Author: SkyHawk
Date: Tue, 11 Jan 2005 22:03
1 lines
1330 bytes
It seems, a long time, just for anyone to answer this question.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads