|
-
July 22nd, 2010, 08:59 AM
#1
TcpClient in Managed C++
Hey guys,
When I run this managed code snippet:
listener = gcnew TcpListener(MyIPAddress, ServerPort);
listener->Start();
MyTcpClient^ mclient; //TcpClient public
TcpClient^ aux = listener->AcceptTcpClient();
mclient = static_cast<MyTcpClient^>(aux);
I get the following error:
"System error: cross-thread operation not valid: Control 'listBox1' accessed from a thread other the thread it was created on."
Please, I just can´t understand what´s going on!
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
|