Well, there seems to be a larger problem somewhere deep inside, which will take a bit longer to find.
Some examples for the crashes:
My main form is stored in a variable named:
Code:
var MainForm: TMainForm;
If you know Delphi, you know that this the standard way to create forms. For some weird reason this object becomes nil, although I'm
never writing to it.
Similiarly, I have lots of arrays which contain, say, the available skills. At some point these arrays simply become zero length and thus the reads fail and cause the crashes.
I must be overwriting all these pointers somewhere, but I have no f*ing clue where.
:(
I'll work on this over the weekend, maybe I have to rewrite parts or the whole code.