This is the mail archive of the
pthreads-win32@sourceware.org
mailing list for the pthreas-win32 project.
Re: Struggling with a loop
- From: Will Bryant <will dot bryant at ecosm dot com>
- To: pthreads-win32 at sources dot redhat dot com
- Date: Mon, 15 May 2006 14:17:41 +1200
- Subject: Re: Struggling with a loop
Mats Aubell wrote:
> I tried to pass it like this:
>
> pthread_create(&thread, NULL, RunApplication, (void*)top)
>
> with the following method:
>
> void * RunApplication(void * arg)
> {
> SR *top = SR*(arg);
> StartRecogniser();
> do {
> top->Ask();
> top->Reset();
> } while(1);
> return 0;
> }
>
> but the create thread method didn't approve of it.
>
>
Can you give us a bit more to go on here - what error does it produce?
--
Will Bryant