"Chidananda Kakunje" <[EMAIL PROTECTED]> wrote in message
news:38315@palm-dev-forum...
>
> This example is really great and works good for me. However,there is
> bug  in INetLow.c
>
> Which took me quite a while to figure out.  Thought it would be worth
> posting it her so here you go.
>
> At line 1874 in InetLow.c
> else if (!error && bytesRead == 0)   should be corrected as
> else if (!error && bytesRead != 0)

INetLow works for me without the modification suggested above. The original
code is simply testing if the connection has been closed (signified by
bytesRead == 0), which indicates that the transmission is complete or that
an error has occurred (see SDK Reference for INetLibSockRead).

INetLow does have a design flaw in that it uses a static variable block in
order to avoid the use of global variables, in order to make it "palmcall
friendly." According to the SDK documentation on launch codes, the same
restrictions apply to static local variables as to global variables, i.e.
they are not available under most non-normal launch codes. The documentation
on sysAppLaunchCmdURLParams makes a point of saying they are not available
under palmcall.

Craig Torell



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to