• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

application error in palm os

 
Piyush Prabhakar
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i have developed a j2me application for palm.it is running on the emulator perfectly.but when i transfer the application on the real device(palm v with os version 4.1),the application is loaded but when i enter the id and password and submit,it gives me an error can't open net.lib error:4615.if anyone know about it,please provide the solution.
thanks in advance.
piyush.
 
Andrew Morrow
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The net.lib error:4615 means that
you have run out of memory.
When you activate the network, you consume a lot of memory (about 32K). One way to try and avoid this is to create a network connection early in the program so you take the hit up front.
Also, if you are on a device with less memory, like a Kyocera smartphone, you may have better luck by reducing the memory allowed to the JVM.
The max is 64KB, but try reducing it to maybe 48KB, 32KB or even less.
The entire store of memory on the Palm is confusing. The JVM takes up a lot more than 64KB, and you only have 256KB dynamic memory for the entire system. I find that the OS takes about 64KB for itself, if you have a lot of code it might take 128KB in the JVM, and when you consume that last 64KB for you java heap, you leave nothing for the system to activate net.lib with.
Sun's Java does not really show you everything that is going on with PalmOS memory. It just gives you the ability to control the Java internal help size.

Here are some more details about that error:

4615 (0x1207) netErrOutOfMemory
These Palm OS error codes are some places on web,
for instance
http://www.nsbasic.com/palm/info/technotes/TN18.htm
If you have the Palm SDK, it is also defined in the include file
sdk-4/include/Core/System/NetMgr.h
but they are defined in a way that I find hard to work with.

The errors I get most often with network programming are:
//
// 4610 (0x1202) netErrNotOpen
// 4613 (0x1205) netErrNoMoreSockets
// 4615 (0x1207) netErrOutOfMemory
// 4626 (0x1212) netErrTimeout
// 4628 (0x1214) netErrSocketClosedByRemote

I posted a smaller reply on the same subject about a year ago in

HttpConnection on kyocera phone
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic