![]() |
| | #1 |
| Politics&Cpp geek Join Date: Oct 2004
Posts: 104
| calling multiple WSAStartup() If i do something like this in my program: Code: WSAStartup(..); WSAStartup(..); WSAStartup(..); WSAStartup(..); Will this produce any errors, or bugs in my program? Or is it ok to call it multiple times, if i just wanna be 100% sure that winsock havnet been terminated at a speccial point in my program.. |
| Da-Nuka is offline | |
| | #2 |
| Registered User Join Date: Mar 2003
Posts: 3,903
| |
| Codeplug is offline | |
| | #3 |
| Registered User Join Date: Nov 2001
Posts: 1,348
| Each call to WSAStartup() increments an counter. So if you make multiple calls, make sure you keep count and do the same to WSACleanup(). Kuphryn |
| kuphryn is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Multiple inheritance: casting yields different address | dwks | C++ Programming | 16 | 06-08-2009 03:03 PM |
| Multiple threads calling the same function at the same time | Niara | C++ Programming | 6 | 01-09-2007 04:12 PM |
| Phantom redefinition | CodeMonkey | C++ Programming | 6 | 06-12-2005 05:42 PM |
| Linker errors - Multiple Source files | nkhambal | C Programming | 3 | 04-24-2005 02:41 AM |
| Calling multiple functions | martina | C Programming | 8 | 04-09-2003 09:14 PM |