Well put the call on another thread then - this really isn't as complicated
as you're making it out to be.

Signature
Chris Tacke
Co-founder
OpenNETCF.org
Are you using the SDF? Let's do a case study.
Email us at d c s @ o p e n n e t c f . c o m
http://www.opennetcf.org/donate
> Yes, but now i have to wait till the file ends, so i can't for example
> increase decrease volume, stoping the file or do anything else till file
> runing ends.
>
> Tamer
Tamer Hesham - 14 Dec 2005 09:26 GMT
Okay, i made a thread and called the play function from it, and it worked
well, but how could i know that the thread is terminated so i could know that
the playing WAV file is ended,
Thanks
And sorry for disturbing but i am new to mobile applications.
Tamer Hesham
<ctacke/> - 14 Dec 2005 13:46 GMT
Have the thread raise an event or set a flag variable.
-Chris
> Okay, i made a thread and called the play function from it, and it worked
> well, but how could i know that the thread is terminated so i could know
[quoted text clipped - 4 lines]
>
> Tamer Hesham
Paul G. Tobey [eMVP] - 14 Dec 2005 15:48 GMT
Or do a WaitForSingleObject() on the thread handle, if you have access to
that result of CreateThread(). The thread handle will be signaled when the
thread has exited...
Paul T.
> Have the thread raise an event or set a flag variable.
>
[quoted text clipped - 8 lines]
>>
>> Tamer Hesham
Sergey Bogdanov - 13 Jan 2006 08:29 GMT
I think he can just use the OpenNETCF.Threading.ThreadEx class instead.
--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com
> Or do a WaitForSingleObject() on the thread handle, if you have access to
> that result of CreateThread(). The thread handle will be signaled when the
[quoted text clipped - 14 lines]
>>>
>>>Tamer Hesham