thread problem

Login to reply to this topic.
Fri, 2008-04-04 17:45
Joined: 2007-12-24
Forum posts: 9

I've a problem to create a thread. The create function return a good result, the function thread is not fired. why ??? this is my code

if ((iThreadCodec.Create(_L("codec"), ExecuteThreadEncode, 4096, NULL, this))==KErrNone)
iThreadCodec.Resume();

TInt Cmycls::ExecuteThreadEncode(TAny *aPtr)
{
Cmycls* camcom = static_cast( aPtr );
.
.
.
.
return 0;
}

thanks at all


Tue, 2008-04-08 08:01
Joined: 2004-12-07
Forum posts: 72
Re: thread problem

Do you need put the thread in stack?

Tue, 2008-04-08 08:32
Joined: 2003-12-05
Forum posts: 672
Re: thread problem

Are you sure that's your code? It shouldn't even compile. Show the actual code, no use commeting on a code which shouldn't even compile. Also, tell how you have verified the thread function hasn't been called.

Tue, 2008-04-08 08:42
Joined: 2007-12-24
Forum posts: 9
Re: thread problem

thank at all now work.... my problem

  • Login to reply to this topic.