Alright, I 'm testing a client/server example. As soon as a client connects I receive a segmentation fault on the server. Where should I start looking?
thanks in advance
Alright, I 'm testing a client/server example. As soon as a client connects I receive a segmentation fault on the server. Where should I start looking?
thanks in advance
at your code somewhere
seriously, your best bet is to ask your friendly neighborhood debugger. clients and servers tend to be mighty big chunks of code, and gdb will help you a great deal in figuring out what function there's a seg fault.
Although my first hint would be to look at any place where you're using a pointer. It's usually got something to do with that.
starX
www.axisoftime.com