So I am using JWJGL

“transport error 202: receive packet failed
The application has been disconnected
Finished executing”

WTF?

Found out a try{Keyboard.poll();}/catch block was causing it.
Taken the command out of it and tada. No more error. The error only occurs when I hit escape and it exits the app.

it displays this now:
VM Started:

The application exited
Finished executing

Anyone know roughly why?

Thanks

what app?
what does it do?
are we talking network application?

is the source available?

http://members.optusnet.com.au/ksaho/Algorithm/JAVA/src/

Press W,A,S,D keys to move, escape to exit.

The problem only occurs when you hit the ‘x’ on the window (which closes it) but it provides the error I mentioned above.

I apologise for not providing the source earlier, I thought it was some general error of some sort.

Thanks

ok, for starters no problems here at all
secondly, ALWAYS do a Window.update(); - regardless of minimized or not
thirdly, assuming that LWJGL is to blame, I have never ever even close to seen an error message like

[quote]“transport error 202: receive packet failed
The application has been disconnected
Finished executing”
[/quote]
!!!

It sounds like some other network program…

Oh, one important thing - which OS ? (Linux, right?)

I am going to speculate a bit here… possibly you’re running linux, and since you’re running @ 100% (no sleeps in that code). you might be stealing processsor time for other applications. One of those other applications then fail, and produce the output to stdout.

Though I can hadly see why Keyboard.poll should be the culprit:

      unsigned char *new_keyboard_buffer = (unsigned char *)env->GetDirectBufferAddress(buffer);
      memcpy(new_keyboard_buffer, key_buf, KEYBOARD_SIZE*sizeof(unsigned char));

it’s about as simple as a native method could ever be!, and certainly not time consuming

Thanks.

I’m actually running WindowsXP.
This error message doesn’t effect my program in anyway, and it is random as well.
So you are most likely right, it was a coincidence that error message didn’t show up after getting rid of the try/catch block.

I’m using Gel with the javac -source 1.5 parameter.

Interesting. That transport error message is most likely coming from Gel. But I wonder what on earth it is doing sending network packets. Must be phoning home about something, unless it is running some sort of client/server setup locally (which I can’t inagine why).

Are you saying that Gel is spyware? :o

you could always run it with your firewall on (try zonealarm - free if you don’t have one). this will tell you what app is trying to get out, and to what address/port.

jim

I just got a similar error playing with Xith…

ERROR: transport error 202: send failed: Socket operation on nonsocket [“transport.c”,L41]

happened when I was debugging in eclipse, and as Xith uses JOGL for a backend, I dont think this is a problem with LWJGL.

Already running zone alarm, and it said nothing about any net access. OS is 2000 Pro.

Maybe it’s something to do with Tiger?

[quote]Maybe it’s something to do with Tiger?
[/quote]
Yikes! :o

could be. I have been running tiger…