It's been quite a while since we've updated our status....
We're now (or at least we hope so) quite close to get the network working.
But I'm encountering a really persistent problem with stl::lists:
When I first start a server and then a client which connects to the server, the server sends the client a gamestate. The client tries to process this gamestate but fails accessing a stl-list (syncList in src/network/Synchronisable.cc/h).
After a lot of debugging I found out the following:
- When the Synchronisable gets created and the list gets filled up everything is fine (can access elements, can use syncList.size() )
- When the function updateData() gets called, everythings messed up (syncList._M_start is 0x0) and most calls (except the ones that return an iterator) to the list (i.e. syncList.size()) ends up with a segfault, which is obvious if the start-pointer is NULL
- I also replaced the list by a vector (which is externally quite the same) with exactly the same result -> segfault
- I tried to set some watchpoints to the list in order to see, when the pointers get messed up, but with no success
I already spent a whole lot of time for this bug and I don't know what else I should try.
- A possible explanation for this would be, if something would write to the synchronisable and that way destroy the list
Has someone any idea why this could happen ?
I hope someone can help us here, because I'm really stuck.
Thanks and greets

PS: This is all about the network branch.