[fpc-pascal]TProcess leaks handles + patch (win32)

Michael Van Canneyt michael.vancanneyt at wisa.be
Fri Jul 30 14:54:47 CEST 2004

On Fri, 30 Jul 2004, Vincent Snijders wrote:

> Hi,
> The TProcess component doesn't close the process handle and the thread handle in the ProcessInformation record, that is created by CreateProcess. In win32 thpse handles should be closed when you don't need them anymore.
> >From MSDN:
> <--begin snippet>
> lpProcessInformation
>     [out] Pointer to a PROCESS_INFORMATION structure that receives identification information about the new process.
>     Handles in PROCESS_INFORMATION must be closed with CloseHandle when they are no longer needed.
> <--end snippet>
> Attached patch fixes this problem.

Applied, thanks.


More information about the fpc-pascal mailing list