ncSetSocketNonBlocking
Status: Alpha
Brought to you by:
neillm
This macro causes an access violation error under windows, wxDevCpp with debugging enabled.
#define ncSetSocketNonBlocking(a) ioctlsocket(a,FIONBIO,(unsigned long *)0x01)
I think it's because the last argument is a pointer and winsock attempts to write something in it. As a quick fix I use
unsigned long arg = 0x01;
ioctlsocket(m_sockfd,FIONBIO,&arg);
But it's still kinda annoying, thought you should know.