Forums Register Login

application error in palm os

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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
Get me the mayor's office! I need to tell her about this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1332 times.
Similar Threads
sun one studio and emulator
MMAPI on Palm OS using WEME J9
Sun one 4 update 1 with palm Emulator
java.lang.OutOfMemoryError
transfering midlet program into palm os
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 05:24:49.