problems with freemem when closing a file
Posted on 2005-05-12
My Delphi 7 program seems to behave well when it is running on Windows XP. Yet the same program running onWindows Server 2003 gives an error when I clos ethe program down, citing problems with Freeing up memory. is there much difference bewteen the two platforms when it comes to running Delphi (version 7). If Xp cannot find a problem, how can I find out what is wrong.
I create a number of dynamic arrays while the program is running. My Closing instruction (when the user stops the program) is to use the finalze procedure to kill off the dynamic arrays. Do I have to close them in any particular order? When using XP it seems to make no difference if I finalise the dyanamic arrays or not. The program just closes down without a pronblem. It appears that Delphi 7 must embed some code to free the memory used up by dyanaic arrays.
I notice that Delphi 2005 says that it is targetted to XP as well as to Server 2003. I wonder if I should complie my application under Delphi 2005.