In my code, i have a section that goes as follows:
...
System.err.print("calling display()...");
pBuffer.display();
System.err.println("...done");
...
in the GLEventListener attached to the pbuffer, i have this:
...
public void display(GLAutoDrawable drawable){
System.err.print("display() running");
//do stuff
}
...
most of the time when running, i get (as one would expect):
“calling display()…display() running…done” on stderr.
Every now and then, though, I get a “calling display()…done”; and no output from display().
Is display not supposed to block?