I am trying to debug a Delphi app that loops through records in a SQL
database calling a Turbo Pascal program using the CreateProcess API for each
record. The TP program does calculations and then creates an XML file which
the Delphi app streams and then posts to the SQL database. The application
appears to be working fine if I do less than a couple of thousand records
although the "memory usage" in task manager continues to increase after each
call.
I have searched "everywhere" and thought I was doing all of the correct
cleanup (closing both handles from CreateProcess, "freeing" the stream
object, etc).
Anyone have any ideas on where to look next? I am concerned that using a DOS
executable with CreateProcess is just too ancient and I will never get it to
work!
Andy...