Re: stuck at getImage()'s wait()

  • To: Bill Hibbard <billh@xxxxxxxxxxxxx>
  • Subject: Re: stuck at getImage()'s wait()
  • From: Ben Monnahan <ben@monnahan>
  • Date: Mon, 19 Aug 2002 16:11:25 -0700
I got it working.  I tore down a bunch of my stuff and replacing it with
things which were like the example.  Unfortunately this happend late friday 
evening so I
went home.  I have been unable to reproduce the problem today so I can't
tell you what I was doing wrong.  If I do come across the problem again
I'll try to nail down exactly what causes it.

Ben


On Fri, Aug 16, 2002 at 04:52:28PM -0500, Bill Hibbard wrote:
> Hi Ben,
> 
> visad/examples/Test50.java uses the getImage() method to
> capture an image from a DisplayImplJ2D. It works on my
> machine. Does it work on yours? Note there are two windows,
> one for the DisplayImplJ2D (where you can drag the image
> around with left mouse clicks) and another that shows the
> result of getImage() calls once per second.
> 
> If it works on your system, then we need to figure out what
> is different about your application. You might send me a
> short test program that demonstrates your problem.
> 
> Cheers,
> Bill
> 
> On Fri, 16 Aug 2002, Ben Monnahan wrote:
> 
> > Hi all,
> >
> > Don, Bill, Thanks for your insight before.  I got those two things
> > working.(Tick marks on the end, rubberband zooming)
> >
> > I've run into another issue.  I'm trying to use DisplayImpl.getImage() to
> > get an image of the display.  The problem is that it stops where
> > DisplayRendererJ2D.getImage() calls wait().  I already have the original
> > getImage() call in a separate thread as described here:
> > http://www.unidata.ucar.edu/projects/coohl/mhonarc/MailArchives/visad-list/msg03153.html
> > I assume I have to notify something to make this work but I can't figure
> > out what or how.  Sorry if this is a simple thread question but I am
> > pretty new to threads(especially java threads).  I would use the
> > java.util.Util.captureDisplay() function but I get a black image.  The
> > author of that article also had the same problem so I am trying to use his
> > solution.  I'm also using 1.4 but for linux.
> >
> > Thanks a bunch,
> > Ben Monnahan
> >
> >


  • 2002 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: