Hello! This is a World of Goo fansite, not a programming website. As such, I've moved this to the off-topic section of the forum.
I'd recommend googling "Segmentation Fault" and seeing what comes up. There are likely some articles that would be most helpful.
For the record, however, segfaults are caused by reading or writing to or from invalid memory locations. For example, passing an invalid file pointer to fprintf() or something along those lines.
They can also be REALLY hard to debug, since certain things you can do to the memory only cause segfaults the next time you need to allocate something. I'd recommend using GDB or some such to backtrace and find out what already executed.
Another Planet finally has an official release! Download chapters 1 through 3 here! Thank you for waiting so long while I kept starting over.
it is causing in fprintf();
Hello! This is a World of Goo fansite, not a programming website. As such, I've moved this to the off-topic section of the forum.
I'd recommend googling "Segmentation Fault" and seeing what comes up. There are likely some articles that would be most helpful.
For the record, however, segfaults are caused by reading or writing to or from invalid memory locations. For example, passing an invalid file pointer to fprintf() or something along those lines.
IRC | Chapter Tutorial | Reference Guide
They can also be REALLY hard to debug, since certain things you can do to the memory only cause segfaults the next time you need to allocate something. I'd recommend using GDB or some such to backtrace and find out what already executed.
Another Planet finally has an official release! Download chapters 1 through 3 here! Thank you for waiting so long while I kept starting over.