Why am I getting java.lang.outOfMemoryError on the line
va[f].normals[index] = new CVector3();
in
numverts = header.num_tris * 3;
Type: Posts; User: polyfrag
Why am I getting java.lang.outOfMemoryError on the line
va[f].normals[index] = new CVector3();
in
numverts = header.num_tris * 3;
Never mind, I can just use type-casting to convert char to int.
I'm programming for Android and I'm using Character.getNumericValue but it's returning negative for space (' ', ASCII #31) and the exclamation mark ('!', ASCII #33) and likely the others that I...
I have a Java game that connects to a C/C++ server.
When I send the packets all at once, they don't get through.
But when I send them with a 100 ms delay in between, they get through.
The...
Oh, forgot to ByteBuffer.allocateDirect();
I have an applet that connects to a C/C++ server.
The server sends packets but the applet can't read them for some reason.
It gets stuck on socketChannel.read(); even though I set it to...