Bonjour,
Je reçois un signal EXC_BAD_ACCESS lorsque j'essaie d'ajouter une socket a une instance de TcpSelector. voici le code complet reproduisant le bug :
#include <SFML/Network.hpp>
int main(int argc, char **argv)
{
sf::TcpListener listener;
sf::SocketSelector selector;
selector.add(listener);
return 0;
}
je l'ai compilé avec cette ligne de commande :
g++ Main.cpp -o main -I ../../lib_C/SFML2/include -L ../../lib_C/SFML2/lib -lsfml-network-s -lsfml-system-s -g
Et voilà ce que me dis gdb lorsque je m'en sers :
gdb main
GNU gdb 6.3.50-20050815 (Apple version gdb-1752) (Sat Jan 28 03:02:46 UTC 2012)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries ... done
(gdb) run
Starting program: main
Reading symbols for shared libraries ++......................... done
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: 13 at address: 0x0000000000000000
0x00000001000020b5 in sf::SocketSelector::add ()
Je vous joint le binaire. Je tourne sur mac avec lion. J'ai récupéré une version récente de la sfml version c4c2c77.
Merci de m'avoir lu.
[attachment deleted by admin]