Hello, everyone!
I am trying to build a networking midlet, and I am using HttpConnection to transfer data to and from the server. I have to open a new HttpConnection everytime i need to send data to or get data from the server. The data transmission part now works, but the midlet is not stable, and it always ends up with a "Global root overflow" exception. Anyone has any idea about this exception?
I have searched the web and the only one result I got is that:
"Global root overflow" means that the native code is registering too many "permanent references" with the garbage collector. Try reusing the connection, allocation of connection-specific data (like socket descriptor etc) might be "leaking".
Well, I think I can't "reuse" the connection, because as I tested out on the phone (Nokia 6610, not the emulator), there is no way I can use persistent connection, nor chunked HTTP. Seems like one of the bugs in the Nokia HTTP implementation.
Any comment are welcomed.

Reply With Quote

