by mervjoyce » May 30, 2005 @ 7:53am
Kornalius,
I think there are still some "memory leaks" issues in PPL.
My "mapping" program leaks about 1.75Mb/hr. It doesn't cause any immediate disaster, but it is worth resolving if possible. I am attempting to localise the offending code examples for you.
My main program is a
While (1)
//program code goes here
end;
type loop. Originally you had some issues with freeing memory within such loops but I feel that you reolved them at the time.
At first glance the problem appears to involve (at least) use of DIM variables.
I'll update this matter as soon as I have some reliable data.
BTW: I spent the last couple of days converting much of my "mapping" program to use "Objects". The inability to have a "List of Structures" and assign the list pointer for external use was quite limiting. However using Objects gets around all of that. "List of Objects" works fine (can now use all my code from Delphi).
It takes a little practice to remember to assign pointers (eg: &st$ = cm$) rather than copy the object and cause memory leaks (cf: st$ = cm$), but I now have it right. Great job!
cheers
Merv Joyce