Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / wxThread how does it work ?

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. wxThread how does it work ?
#6021
Posted by: 2005-04-08 04:46:18
Hello all

(sorry if my english isnt very well)
My question is: how does the wxThread class work ?
I made a own thread class called MyThread delivered
from wxThread.
I also declaired the methodes Entry()
and OnExit.

I start my thread with Create(...)
and Run()
but when i try to stop the thread my application freezes.
Did i miss something ? Did i misunderstood something ?


thanks martin
Message2. Re: wxThread how does it work ?
#6022
Posted by: guidance 2005-04-08 09:01:49
Have you viewed the help document? http://g.yi.org/search.php?search=wxthread

and confirm your library is MT enabled.
Message3. Re: wxThread how does it work ?
#6024
Posted by: 2005-04-09 06:59:21
Hallo

yes i have already readed this page.
But without success. I have the same problem.

I cant call the Delete methode cause my app freezes
after that.

In the docus it says: "if the thread code is well written"
anyone has a sample how a well written code looks like ?

where can i see if MT enabled ?

thanks martin
Message4. Re: wxThread how does it work ?
#7164
Posted by: sjoyous 2005-10-05 14:38:18
before delete thread u have to call TestDestroy() function of the wxThread class. just try it i think your problem will be solved after this.
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥287.00 ·
 
 
¥2,600.00 ·
 
 
¥289.00 ·
 
 
¥1,370.00 ·
 
 
¥289.00 ·
 
 
¥1,480.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0