On Thu, 3 Jan 2002, Lucas wrote: > Ok I'm connecting right.... But I need Disconnect!!!!!! > I tried use the NetLibClose(AppNetRefnum,true); > But the connection continue active!!!!!
Are you writing this only for yourself? Or are you planning on releasing it? If someone other than yourself is going to be using this software of yours, then you do not want to force their network connection to close when you yourself are done with it. What you're doing (making the 2nd parameter to NetLibClose true) is the recommended way to do things. Just let the user close the network connection when they are done with it, or let Palm OS close it when nothing has been using it for the specified timeout (there is a preference for that, too). If you try to force the network connection to close when the user doesn't expect it to, then you're only going to annoy people. What I have done in the past is to give a preference in my app, to let the user specify what they want to happen. The choices are: leave the connection open, close the connection when finished, or prompt the user to close it or not when finished. I default to the 3rd choice, so they will be prompted and later set the behavior as they want it. ----------------------------------------------------------------------- Brian Smith // avalon73 at arthurian dot nu // http://www.arthurian.nu/ Software Developer // Gamer // Webmaster // System Administrator Echelon Teasers: NSA CIA FBI Mossad MI5 Cocaine Cuba Revolution Espionage -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
