I don't know what happened. Here is the rest of the question :
Each node must know the list of its children nodes and its father node, and then have an array of pointers pointing to each child, and a separate pointer pointing to the father.
The nodes are complex objects and take a significant amount of memory, so not using pointers would be unwise, or so I thought.
I don't get compilation errors but I keep having a runtime error with this message : "Project X caused an error in KRNL32.DLL", or similar messages with a window popping up and highlighting Assembler instructions as if I could do anything with that.
The firts window appears normally. The error occurs when I try to add the first node.
When I remove all the pointers I get less errors but the application crashes when the 3rd or 4th node is added.
There is not much I can do since these errors aren't syntax related. It seems that pointers don't work in Delphi, but what can you do
without using pointers unless you only program apps of the "Hello world" level.
So I'd like to know how to workaround with pointer errors and any experience with such errors in other languages would be welcome.
And any ideas about how to implement this model without using pointers are useful.
Thanks Tychom, you may have other suggestions now that I have completed the post
