Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / Problems with wxThread and sockets :-(

Register 
新用户注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Problems with wxThread and sockets :-(
#4323
Posted by: 2004-06-03 05:41:38
Hi,
I'm traing to call a class method that use sockets to send some requests to a web server but it seems impossible to do this form à wxthread.
Does someone have informations on this type of problem?

Message2. Re: Problems with wxThread and sockets :-(
#4329
Posted by: upCASE 2004-06-03 15:08:54
Hi!
Sockets and Threads... a well known problem. Check the mailing list for more info, there where a hell lot of posts about that. Currently, I guess you'll be out of luck. Maybe with the upcoming 2.6.0 version this will change.
upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Message3. Re: Problems with wxThread and sockets :-(
#4333
Posted by: 2004-06-03 21:07:52
http://www.litwindow.com/Knowhow/wxSocket/wxsocket.html
Message4. Re: Problems with wxThread and sockets :-(
#4335
Posted by: upCASE 2004-06-03 22:08:21
Hi!
Thanks a lot!
upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Message5. Re: Problems with wxThread and sockets :-(
#4340
Posted by: 2004-06-04 01:59:17
Thanks a lot!
I realy love this forum!
Message6. Re: Problems with wxThread and sockets :-(
#4430
Posted by: 2004-06-12 03:31:04
Hi
I try to do what the site http://www.litwindow.com/Knowhow/wxSocket/wxsocket.html says about my problem with threads and sockets but the result is the same.
I have also try to use Win32 threads but it is exactly the same I don't know why it dont works because my class that uses sockets works very well without threads.
I can undestand that there is a problem when wxsocket is used in wxthread but in my case there is also a problem when wxsocket is used in win32 api thread.

Does someone have an idea
I'm going mad with this problem, my software only need treads to be finish but I find no way to make it works.

Thanks

Oim

Message7. Re: Problems with wxThread and sockets :-(
#4431
Posted by: 2004-06-12 06:28:15
Sorry that's ok I found the way to make it works :-)
Message8. Re: Problems with wxThread and sockets :-(
#4443
Posted by: chot 2004-06-13 05:44:32
i had a lot of truble with threads and sockets too, so i wrote a quick and nice fix:
i wrote a class that inherits and works like wxEvtHandler, except you have to connnect the events dynamicly
the only difference from a wxEvtHandler is that once the events is processed, they are processed in a thread.
i postade a zip at sf, if you want to try it out
http://sourceforge.net/tracker/index.php?func=detail&aid=943172&group_id=9863&atid=309863
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Wed 2021-4-14  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0