-
March 17th, 2011, 02:36 PM
#1
Program Hangs When Accessing Sockets Code
I'm writing an application to display network events on a Windows form, using managed C++. A single Form is launched from main(), and in that I create a thread to loop round and react when network events occur. The event-queuing and data transmissions seem to work ok, but the program hangs sometimes for a few seconds when sending data (WSASend()), even though only a few bytes are being sent. The data structures used for the networking functions are declared as global variables above main - could accessing these from within the Form be the reason for problems?
Thanks,
k
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|