Hello guys! I'm new to this networking on xna and i'm developing a windows game that uses system link network.
In my "lobby" i have a list that shows any available session on the net, this means that if someone in the net creates a session would appear in everybodys list. I fill this list with the using(availableNetworkSessionCollection availableSessions=NetworkSession.Find(......)) statement took from PeerToPeerSample. I use this list beacuse i want a player select a session that he would like to join and join it.
I also have on the lobby a menu to create a new session (so this one should appear in others lists). Here comes the problem. When i create a session on a machine, it gives me this Exception (when list refreshes):
"Could not create object because a different session already exists. There can only be one NetworkSession or AvailableNetworkSessionCollection in use at a time. You must Dispose any previous session before creating a new one."
Why is this?? I don't know why it throws me this exception, since i'm not creating another session.
Can i accomplish what i want to do with XNA SystemLink?? if i can... can someone guide me?? Beacuse i'm a little lost!! :P
Thanks!!
Sorry about my english, i speak spanish :P