Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Runtime error (http://www.go4expert.com/forums/runtime-error-t22758/)

benshrupendra 19Jul2010 18:03

Runtime error
 
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 25Jul2010 20:09

Re: Runtime error
 
Thread->Start() does not take any parameters. See the examples at this link

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

shabbir 26Jul2010 08:40

Re: Runtime error
 
Quote:

Originally Posted by Ancient Dragon (Post 70717)
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.


All times are GMT +5.5. The time now is 21:09.