SFML community forums

Help => Network => Topic started by: sknnywhiteman on March 15, 2013, 06:59:11 pm

Title: [SFML 2.0] Does TCP socket use the Window context?
Post by: sknnywhiteman on March 15, 2013, 06:59:11 pm
I'm using a multi-threaded program to use one for rendering and the other for things with the CPU.. but after I create the second thread and start the context in it for the window, I'm unable to do anything with the TCP socket without it crashing. Is that it, or am I doing something wrong?
Title: Re: [SFML 2.0] Does TCP socket use the Window context?
Post by: Laurent on March 15, 2013, 07:14:56 pm
No, you must do something wrong. You should show your code.
Title: Re: [SFML 2.0] Does TCP socket use the Window context?
Post by: sknnywhiteman on March 15, 2013, 08:00:01 pm
Nevermind. Turns out I forgot to remove the window.display() function from the main thread loop and it was crashing in a different area. That was an awkward bug combination. My apologies. :P