SOCKET and wxThread

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Hackbert
Experienced Solver
Experienced Solver
Posts: 51
Joined: Sun Sep 12, 2004 11:58 am
Location: Hamburg, Germany
Contact:

SOCKET and wxThread

Post by Hackbert »

Hi! I've developed an app that serves network clients (not yet). I use a class derived from wxThread which gets a socket (really plain sockets, no wxSockets) as a parameter. I can use the SOCKET in the constructor but not in the Entry() function which is called as a new thread. Even using dup for duplicationg the socket doesn't solve the problem...
Hackbert
Experienced Solver
Experienced Solver
Posts: 51
Joined: Sun Sep 12, 2004 11:58 am
Location: Hamburg, Germany
Contact:

Post by Hackbert »

It's not only the socket that doesn't work, it really seems as if the thread wouldn't be executed. I guess it has something to do with the project settings and / or the fact that it is a console application...
Hackbert
Experienced Solver
Experienced Solver
Posts: 51
Joined: Sun Sep 12, 2004 11:58 am
Location: Hamburg, Germany
Contact:

Post by Hackbert »

Sorry for this dumb thread! I forgot to call Run(). The thread can be deleted...
Post Reply