Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / Question to wxThread

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

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Question to wxThread
#3029
Posted by: lea 2003-11-30 15:06:23
Hi!

I have a wxThead(detached), started with Create(), Run().
The Thread's Entry()-Method works without an infinity loop.
Does this Thread, when exiting Enty(), delete himself?
Or must i do something, like call Delete() from another thread?
The doc says "Fire and Forget", so i am a bit confused here.

Thx.
Message2. Re: Question to wxThread
#3037
Posted by: lea 2003-12-01 05:27:17
Another question:

ExitCode Entry()
{
 URL url("myurl");
 wxInputStream *in_stream = url.GetInputStream(); //Hangs here
 return (ExitCode)1;
}

This Code seems good,but the thread doesn't continue when entering url.GetInputStream().
When i call it from the main-thread it works, so what is wrong here?

Thx.
Message3. Re: Question to wxThread
#3038
Posted by: lea 2003-12-01 05:34:57
I found out that wxURL is not thread safe and the infinity loop is an know bug :(
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥333.00 ·
 
 
¥370.00 ·
 
 
¥660.00 ·
 
 
¥1,360.00 ·
 
 
¥860.00 ·
 
 
¥890.00 ·
© Tue 2024-11-5  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0