Hi David, It doesn't surprise me that this is occurring. Delphi has it's own memory manager that gets memory from windows and from there handles the distribution internally. it does sound a bit much for it to hold onto, and i tend to think it would somehow throttle the memory it holds so it's not to greedy. I'd be happy to give that portion of your code a quick look over for anything obvious if you like.
Not sure if there is a way to force the delphi memory manager to give up all unused memory, maybe someone else on the lists know a method for this. thanks, david. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of David O'Brien Sent: Wednesday, 15 January 2003 11:54 To: Multiple recipients of list delphi Subject: [DUG]: Memory usage I have an app that reads files into a memory stream one at a time, checks them, then free's the memory stream after each file. In task manager, the memory raises to the size of the memory stream as expected, but when the memory stream is freed the memory used never drops back. Some of the files are upwards of 100Mb. Does this look like a problem or is it normal behaviour? Is there any way I can force the memory used back to the lower level? Cheers, Dave. --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
