Hi Folks,
I have run into a number of memory-access errors when using INetLib to
POST and receive data, and wonder if someone who has doen this
successfully can share their insight.
I understand from Palm dev support there is a known bug in the INetLib
URL encoding functions, which can cause a memory manager error to appear
when using Poser if certain URL formats are used. You can test this out
by running Palm's INetLow.c sample program in Poser against the
following simple POST echo service some kindly Palm developer has
provided. (BTW, the service runs on port 80, so if you "try" to access
it on a different port, you get no data back -- which is epected.)
The following URLs work fine (e.g., no memory-access error) if your POST
some data (e.g., "TESTING"). Note that some of these URLs return a "No
Data" application message, which is to be expected:
http://207.175.161.68/scripts/posttext.dll
http://207.175.161.68:80/scripts/posttext.dll
http://207.175.161.68:81/scripts/posttext.dll
However, the following URLs cause memory-access errors under Poser:
http://207.175.161.68:8001/scripts/posttext.dll
http://207.175.161.68:80/scr/posttext.dll
http://207.175.161.68:80/scr/posttext.dll
Changing the URL around a tiny bit seems to make a lot of difference in
terms of whether you get memory-access error or not under Poser. I have
caused Poser to automatically Reset by typing in a sequence of URLs that
cause such memory-access errors.
By the way, my interest in the memory-access errors for e.g. the
INetLib.c example under Poser is related to our actual wireless
application. It too gets such memory-access errors under Poser using
various URL formats, and when run on an actual device, crashes after a
(seemingly) random number of such accesses (indicating a memory
trash/crash problem). Unfortunately, the results i'm seeing under Poser
do not always seem to agree with results observed when using an actual
device -- for example, a URL encoding that seems to work fine with our
application under Poser causes our application to (very predictably)
crash with the following error message:
Error: "INetLib.c line 4372, Invalid Params." {Reset}
Thanks for reading this far, and any insights offered are much
appreciated!
best regards,
--Mike A
([EMAIL PROTECTED])
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/