Re: Struggling with a loop

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Struggling with a loop

Will Bryant-2
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