This site is no longer active and is available for archival purposes only. Registration and login is disabled.

can't close a thread - help


can't close a thread - help

Postby MirekCz » Dec 3, 2001 @ 10:58am

ello,<br>I have got a thread created like this:<br>SoftwareThreadHandle=CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)SoftwareThread,hWnd,0,&SoftwareThreadId);<br>it's a nice thread and it closes under win2k without a problem using this:<br>TerminateThread(SoftwareThreadHandle,0);<br>but once I run PPC emu and use it with my GAPI routines Terminating a thread doesn't help.... unless I change its priority to Abovenormal with this:<br>SetThreadPriority(SoftwareThreadHandle,THREAD_PRIORITY_ABOVE_NORMAL);<br>why is it so??? how to get around it? Do I have to use ExitThread from the threadloop? (it's an infinite loop updating graphics as needed and getting ExitThread somewhere between that doesn't seem like a good idea to me:)<br>Can anyone help my little Mr.thread a bit?:)<br>thnx for all help!<br>
With best regards,
Mirek Czerwinski
User avatar
MirekCz
pm Member
 
Posts: 269
Joined: Sep 18, 2001 @ 6:42pm
Location: Poland,city Poznań


Re: can't close a thread - help

Postby superman » Dec 3, 2001 @ 11:18am

"Kittens give Morbo gas." - Morbo the News Monster
User avatar
superman
pm Member
 
Posts: 99
Joined: Nov 3, 2001 @ 1:09am


Re: can't close a thread - help

Postby Digby » Dec 3, 2001 @ 1:46pm

Digby
pm Insider
 
Posts: 1011
Joined: Apr 29, 2001 @ 1:53pm


Re: can't close a thread - help

Postby MirekCz » Dec 3, 2001 @ 2:06pm

With best regards,
Mirek Czerwinski
User avatar
MirekCz
pm Member
 
Posts: 269
Joined: Sep 18, 2001 @ 6:42pm
Location: Poland,city Poznań


Re: can't close a thread - help

Postby MirekCz » Dec 3, 2001 @ 2:10pm

With best regards,
Mirek Czerwinski
User avatar
MirekCz
pm Member
 
Posts: 269
Joined: Sep 18, 2001 @ 6:42pm
Location: Poland,city Poznań


Re: can't close a thread - help

Postby superman » Dec 3, 2001 @ 2:23pm

"Kittens give Morbo gas." - Morbo the News Monster
User avatar
superman
pm Member
 
Posts: 99
Joined: Nov 3, 2001 @ 1:09am


Re: can't close a thread - help

Postby superman » Dec 3, 2001 @ 2:24pm

"Kittens give Morbo gas." - Morbo the News Monster
User avatar
superman
pm Member
 
Posts: 99
Joined: Nov 3, 2001 @ 1:09am


Re: can't close a thread - help

Postby MirekCz » Dec 3, 2001 @ 2:31pm

With best regards,
Mirek Czerwinski
User avatar
MirekCz
pm Member
 
Posts: 269
Joined: Sep 18, 2001 @ 6:42pm
Location: Poland,city Poznań


Re: can't close a thread - help

Postby superman » Dec 3, 2001 @ 2:42pm

"Kittens give Morbo gas." - Morbo the News Monster
User avatar
superman
pm Member
 
Posts: 99
Joined: Nov 3, 2001 @ 1:09am


Re: can't close a thread - help

Postby Dan East » Dec 3, 2001 @ 3:57pm

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Re: can't close a thread - help

Postby simonjacobs » Dec 3, 2001 @ 4:45pm

User avatar
simonjacobs
pm Insider
 
Posts: 311
Joined: Nov 27, 2001 @ 4:51pm
Location: London, UK


Re: can't close a thread - help

Postby MirekCz » Dec 3, 2001 @ 5:06pm

With best regards,
Mirek Czerwinski
User avatar
MirekCz
pm Member
 
Posts: 269
Joined: Sep 18, 2001 @ 6:42pm
Location: Poland,city Poznań


Re: can't close a thread - help

Postby MirekCz » Dec 3, 2001 @ 5:17pm

With best regards,
Mirek Czerwinski
User avatar
MirekCz
pm Member
 
Posts: 269
Joined: Sep 18, 2001 @ 6:42pm
Location: Poland,city Poznań


Re: can't close a thread - help

Postby Digby » Dec 3, 2001 @ 5:59pm

Digby
pm Insider
 
Posts: 1011
Joined: Apr 29, 2001 @ 1:53pm


Re: can't close a thread - help

Postby MirekCz » Dec 3, 2001 @ 6:43pm

With best regards,
Mirek Czerwinski
User avatar
MirekCz
pm Member
 
Posts: 269
Joined: Sep 18, 2001 @ 6:42pm
Location: Poland,city Poznań


Return to Phantom's Forum


Sort


Forum Description

Discuss any of Phantom's projects here (Operation Nutcracker, etc.)

Moderators:

sponge, RICoder, Phantom

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum