Crap, spent two hours trying to find a memory leak in the generator and wasn't able to. >:|
TIL a few things about debugging, terminal shortcuts and what GDB stands for. Still haven't actually fixed the damn thing though. #theVent
@thomasorus I can handle GDB pretty well by now, but I'm struggling with a memory leak somewhere that causes the program to crash when the lexicon hits a line count of around 400.
@thomasorus I can see what happens (an array index int is going crazy at a certain moment), but I don't know why. I have been on this issue for the past days, it's driving me nuts.
@cancel @thomasorus I found it. I didn't allocate enough memory for a string buffer. feel so dumb having spent 7 hours on this.
Thanks for the offer of trouble shooting, I really appreciate it. The fear of coming on IRC to waste everyone's time on my ridiculously noob problem was the motivation I needed. :)
@rostiger @thomasorus (Unless some other library or piece of code specifically asked you to allocate a buffer of a certain size, and you failed to do it. But copying or printing a formatted string into a buffer that's too small shouldn't cause a corruption, unless you are using the bad C string functions.)
Merveilles is a community project aimed at the establishment of new ways of speaking, seeing and organizing information — A culture that seeks augmentation through the arts of engineering and design. A warm welcome to any like-minded people who feel these ideals resonate with them.