Mengbillar
Programmer
OK I have a problem. I was trying a few things with the winsock tool. now i have a two-form-progra, where each form simulates an own program. using different ports but the same IP, i could connect both using winsock, send some data, etc. This all worked fine. BUT after I closed the program, e.g. to change some code, and wanted to try again, it didnt work any longer. I ordered one of the forms to listen. ok. now i order the second one to connect, and at the winsock1.connect line, it stops with the error:
Run-time error '10048':
Address in use.
What address? How can I solve this problem OR does anyone have a link (or whatever) to some information about winsock run-time errors, since i couldnt find any such error described in MSDN. However, if I wait a bit, like 5 minutes or so (but definately no less than that) it will work again. I have a QuerryUnload event that closes the connection before either form is closed... what am i doing wrong???
Thanks for your reading this far
Run-time error '10048':
Address in use.
What address? How can I solve this problem OR does anyone have a link (or whatever) to some information about winsock run-time errors, since i couldnt find any such error described in MSDN. However, if I wait a bit, like 5 minutes or so (but definately no less than that) it will work again. I have a QuerryUnload event that closes the connection before either form is closed... what am i doing wrong???
Thanks for your reading this far