Hi,
Thanks for your help, I've managed to track it down once I was told what to look for.
I had this:
const char *library_Net =3D "Net Lib";
which was reasonable, because I copied my example from here
http://www.palmos.com/dev/support/docs/recipes/netlibsocket.html
Actually what I should have written was
const char *library_Net =3D "Net.lib";
And now it all works without any problems.
I must remember not to trust documentation. Now I look more carefully, I can spot at least two other errors on that page.
Thanks!
Ben
Subject: RE: fatal exception on switch off with SysLibRemove on Net Lib ref From: "Kevin OKeefe" <[EMAIL PROTECTED]> Date: Tue, 26 Aug 2003 13:51:27 -0400 X-Message-Number: 15
In general one shouldn't remove a library if one didn't load it. The Net lib= = is loaded by the OS, so you'll typically Find it using SysLibFind and you won't need to = SysLibLoad it (and therefore, shouldn't SysLibRemove it).
The real question is why SysLibFind isn't finding the network library... My = guess is that you've reset=20 the device with an Up-arrow reset and extensions haven't been loaded.
Because the net lib is typically loaded at startup by the OS, many = applications may make some assumptions about it being around - assumptions you may be breaking by removing it.
Hope this helps, Kevin
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
