// JP opened flex table

Click to See Complete Forum and Search --> : CAsynSocket::Create causes the program to stop


Grit
December 3rd, 2007, 07:52 AM
Hi

I have a program that tries to create an UDP Conenction

When I call this line in release mode:
if (!Create(nPort, SOCK_DGRAM, FD_READ|FD_WRITE|FD_OOB|FD_ACCEPT|FD_CONNECT|FD_CLOSE, m_strNet))
then the program produces a windows popup messages that "a ressource is not available" and then the program stops. I added an errormessage under this line to try to get the last error but I never get to that line. When I compile the program as debug version then it works fine. What could be wrong?

thanks
Grit

VictorN
December 3rd, 2007, 08:26 AM
When I call this line in release mode:
if (!Create(nPort, SOCK_DGRAM, FD_READ|FD_WRITE|FD_OOB|FD_ACCEPT|FD_CONNECT|FD_CLOSE, m_strNet)) then the program produces a windows popup messages that "a ressource is not available" and then the program stops. Please, post the correct and full message, not your interpretation of it.

I added an errormessage under this line to try to get the last error but I never get to that line. To what line? I don't see any line to show the message. :confused:
Please, post more code to understand what are you doing and how, and what are the values of nPort and m_strNet
When I compile the program as debug version then it works fine. What could be wrong?Surviving the Release Version (http://www.flounder.com/debug_release.htm)

Marc G
December 3rd, 2007, 12:15 PM
[ moved thread ]

//JP added flex table