Runtime error

benshrupendra's Avatar, Join Date: Jul 2010
Newbie Member
I get runtime error when I run the application

Thread ^readThread = gcnew Thread(gcnew System::Threading::ThreadStart(this, &PipeServer::Read));

readThread->IsBackground = true;
readThread->Start(client);

The Error is:
The thread was created with a ThreadStart delegate that does not accept a parameter


Please help me to solve it,

Thanks in advance.

Regards,

Rupendra
Ancient Dragon's Avatar, Join Date: Jul 2010
Go4Expert Member
Thread->Start() does not take any parameters. See the examples at this link

http://msdn.microsoft.com/en-us/libr...readstart.aspx
shabbir like this
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by Ancient Dragon View Post
Thread->Start() does not take any parameters. See the examples at this link

http://msdn.microsoft.com/en-us/libr...readstart.aspx
Made it clickable.