Jason Green
2006-01-12 20:24:43 UTC
At least on Windows, the NetChannel example doesn't work. It compiles
fine, but nothing ever displays when you run it.
I debugged it down to the file socket_generic.cpp, line 142:
ref_count--; // line 141
if (ref_count == 0) delete this; //line 142
The function never returns from that line. If I comment that line out
and recompile, the whole example works fine, but I'm guessing that might
cause some sort of memory leak? (I really have no idea, I'm just
testing some examples)
If anyone has a clue how the networking code works, please take a look
at that example and see if you know what's going on, or if it's a
problem in clanNetwork. Thanks!
fine, but nothing ever displays when you run it.
I debugged it down to the file socket_generic.cpp, line 142:
ref_count--; // line 141
if (ref_count == 0) delete this; //line 142
The function never returns from that line. If I comment that line out
and recompile, the whole example works fine, but I'm guessing that might
cause some sort of memory leak? (I really have no idea, I'm just
testing some examples)
If anyone has a clue how the networking code works, please take a look
at that example and see if you know what's going on, or if it's a
problem in clanNetwork. Thanks!