At 9:43 AM +0530 9/27/01, Gaurav Palvia wrote:
>  Hi folks,
>     How much memory the Net.lib takes after initializing on the device.As
>when i see the free memory after
>   running the code below i get different amt of free mem on the device and
>on the emaulator.And the differnece is
>   very huge say almost 40 kb.(  I ve clicked the Redirect Net.lib calls to
>Host TCP/IP on the Emulator )
>
>   i m using the code as given below:
>
>  error = SysLibFind("Net.lib",&AppNetRefnum);
>  if( error )
>       return error;
>
>   error = NetLibOpen(AppNetRefnum,&iFErrs);
>   if( error )
>       return error;
>
>    Is there something wrong that i may be doing...??

When utilizing the NetLib redirection feature of the Palm OS 
emulator, the actual NetLib library in the OS is not used.  That is, 
calls to NetLibOpen don't actually result in the library being 
opened.  And since it's not opened, the memory that it would normally 
allocate is not allocated, resulting in the differences you see.
-- 

-- Keith Rollin
-- Palm OS Emulator engineer

-- 
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