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

Author Topic: [FD_SETSIZE][VS12] Problem when switching to release mode from debug mode  (Read 5107 times)

0 Members and 3 Guests are viewing this topic.

Isamu

  • Newbie
  • *
  • Posts: 9
  • Hello, you can call me Isamu.
    • View Profile
    • QLogie
Hello everybody,

I am currently working on a client/server chat interface-program. Everything works fine until I switch to release mode.

Console output:
The socket can't be added to the selector because its ID is too high. This is a limitation of your operating system's FD_SETSIZE

This output is generated because of
selector.add(listener)


I've already read something about this FD_SETSIZE problem on Windows, but I don't get why it randomly appears when I switch to release mode.

Strelok

  • Full Member
  • ***
  • Posts: 139
    • View Profile
    • GitHub
What's the value that triggers the error?
« Last Edit: August 24, 2014, 03:45:10 am by Strelok »

binary1248

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1405
  • I am awesome.
    • View Profile
    • The server that really shouldn't be running
Was fixed recently:
https://github.com/SFML/SFML/commit/eaab2c1c6816f290c403db372a489d06f41eee19

Build the latest master... or wait for someone to provide a pre-built one for you.
SFGUI # SFNUL # GLS # Wyrm <- Why do I waste my time on such a useless project? Because I am awesome (first meaning).


binary1248

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1405
  • I am awesome.
    • View Profile
    • The server that really shouldn't be running
They are both more or less the same. The commit I posted was merged into master in the one you posted.
SFGUI # SFNUL # GLS # Wyrm <- Why do I waste my time on such a useless project? Because I am awesome (first meaning).

Isamu

  • Newbie
  • *
  • Posts: 9
  • Hello, you can call me Isamu.
    • View Profile
    • QLogie
Was fixed recently:
https://github.com/SFML/SFML/commit/eaab2c1c6816f290c403db372a489d06f41eee19

Build the latest master... or wait for someone to provide a pre-built one for you.

I've already seen this fixed "version", but the problem is that I use the TGUI extension, which uses its own pre-built SFML..

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email
Couldn't you simply rebuild TGUI yourself against a recent SFML version?

Isamu

  • Newbie
  • *
  • Posts: 9
  • Hello, you can call me Isamu.
    • View Profile
    • QLogie
Couldn't you simply rebuild TGUI yourself against a recent SFML version?

I did not think about that, lol. Thanks for the answer, going to try it now.

Isamu

  • Newbie
  • *
  • Posts: 9
  • Hello, you can call me Isamu.
    • View Profile
    • QLogie
Okay, I just build TGUI and the fixed SFML version. And again, I get the FD_SETSIZE problem..

edit: "forgot to copy the built .DLLs  :-X, everything works now, thanks everyone for replying :)
« Last Edit: August 24, 2014, 03:52:20 pm by Isamu »