Board index » delphi » Open and Save Dialog Box resource leak

Open and Save Dialog Box resource leak

I have noticed that the Open and Save Dialog boxes in Delphi 4 apparently do not release file handles after ".execute" is called, even if the form they are on is destroyed. Is there any way to free these file handles? Thanks much for any insight on this problem -- it is causing me great grief because my app runs out of file handles after the user executes one of these procedures.

 

Re:Open and Save Dialog Box resource leak


Quote
In article <38bd9788@dnews>, Ken Pfeiffer wrote:
> I have noticed that the Open and Save Dialog boxes in Delphi 4 apparently do
> not release file handles after ".execute" is called, even if the form they
> are on is destroyed.

The dialogs do not create or open files themselves, so they do *not* use any file
handles. The only exception is the save dialog when the user tries to save a file
to a network drive. In that case the common dialog may try to create a test file
to check if the drive is writable, you can switch that off by setting the
ofNoTestFileCreate option to true.

Peter Below (TeamB)  100113.1...@compuserve.com)
No e-mail responses, please, unless explicitly requested!

Sent using Virtual Access 5.00 - download your freeware copy now
http://www.atlantic-coast.com/downloads/vasetup.exe

Other Threads