OK thanks a lot, I'll try this next time I'm at work (need the hardware to run it).
One thing I don't understand from your post is - why in your code do I need to free the created objects? I thought this should be dealt with by the garbage collector.
Do I need to .Free them or how should I...
PElement is simply
type PElement = ^TElement;, I need the pointer type to allocate memory for the TElement objects so I can store them in the TTreeNodes in their Data properties. Or so I think at least, I remember spending many hours until I got this to work without access violations.
Yes...
OK thanks for your help whosrdaddy.
Adding
MovingTable := nil;
StillTable := nil;
at the end of the function does not fix the crashes unfortunately.
Here's one example of code creation from a file, which also makes clear that I'm a complete novice... Pointers are simple and...
From Copy's help file:
Besides, part of the point of this code is that the assignments in the last loop affect FY- and FXmotiontable, not a local copy of them that subsequently dies when the function finishes.
svanels,
Sorry for being unclear, this is Delphi 6. The Windows components are there but irrelevant to this problem afaik. The entire code is far to big to post here so I cut out the part I believe contains the problem.
Thanks !
Hi,
I have a problem with a large program I wrote, under certain conditions I get access violations when I exit the program (but not as far I tried when it's still running).
I've narrowed it down to the following part, it's a routine that only gets called by the object's constructor (FX- and...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.