[bt-devel] problem
Martin Gruner
bt-devel@crosswire.org
Sat, 19 Aug 2000 22:40:23 +0200
Hi,
i found it.
For whosoever is interested:
i = pthread_create( thread, attr, &CModuleSearch::search, NULL );
-the last argument is the argument that is to be passed to the main thread
function, which is search(void*) in this case.
-this argument may not be NULL for some strange reason, so
i = pthread_create( thread, attr, &CModuleSearch::search, this ); does work.
Next week I will add search progress displaying.
Martin
Am Sam, 19 Aug 2000 schrieb Martin Gruner:
> Hi Joachim,
>
> i put the thread code in CModuleSearch, which is the place where it belongs
> since it is not useful to search multiple modules in parallel.
>
> Now my problem is that the search thread crashes after being created. I
> have no idea - could you please help me debugging, Joachim (and other
> volunteers)? a result of 0 for pthread_create is good and should mean the
> thread was sucessfully created. but it crashes immediately...
> please help me!
>
> after the problem is solved, i shall add progress indication to the search.
>
> thank you for all your efforts.
>
> God bless all of you.
>
> Martin