Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [SFML 2.0] Does TCP socket use the Window context?  (Read 2168 times)

0 Members and 1 Guest are viewing this topic.

sknnywhiteman

  • Newbie
  • *
  • Posts: 38
    • View Profile
    • Email
[SFML 2.0] Does TCP socket use the Window context?
« 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?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: [SFML 2.0] Does TCP socket use the Window context?
« Reply #1 on: March 15, 2013, 07:14:56 pm »
No, you must do something wrong. You should show your code.
Laurent Gomila - SFML developer

sknnywhiteman

  • Newbie
  • *
  • Posts: 38
    • View Profile
    • Email
Re: [SFML 2.0] Does TCP socket use the Window context?
« Reply #2 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