Hi,
I am writing an app that uses NetLib. After 16
successful connections, my app gets
"netErrTooManyTCPConnections" (error: 0x124F) from
NetLibSocketOpen() call. The figure 16 gives me a
feeling that I am missing an unlock/free of one of
the network resources. I have checked my code quite
a few times - every execution has the following
sequence
NetLibOpen()
NetLibSocketOpen()
NetLibConnect(...remote..)
NetLibSocketClose()
NetLibClose()
Do I need to call NetLibSocketShutdown() before
NetLibSocketClose()?
NetLibClose is called with "false" as the second
argument (as suggested by document). I have also
checked NetLibOpenCount() at each and every stage
- it is 0 before I open and '1' while I use NetLib
and back to '0' after I close it. I can recover from
the above error if the interface is disconnected
explicitly (either wait for poweroff, "Disconnect"
button in NW panel or by software). After the line
is disconnected, NetLibSocketOpen() will work for
another 16 turns. (NetLibSocketClose() as well as
NetLibClose() return success all the time)
Any idea what could be wrong?
Any help is appreciated.
===
Ion Popescu
[EMAIL PROTECTED]
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com