ExifTool Forum

ExifTool => Developers => Topic started by: MT001 on December 19, 2013, 04:18:15 PM

Title: Child process don't die
Post by: MT001 on December 19, 2013, 04:18:15 PM
Hi  to All,

I'm using exif tool inside my c++ application in Windows environment.
I can  launch exif tool using ::CreateProcess API correctly, this create 2 exifTool process (one master and one child)
When I close my application ( or it crash) only one of 2 exifTool process is closed (the master)..the child process remains alive.

How I cound avoid that ?

Thanks
MT
Title: Re: Child process don't die
Post by: Phil Harvey on December 19, 2013, 06:33:13 PM
With the C++ Interface for ExifTool (http://owl.phy.queensu.ca/~phil/cpp_exiftool), I solved this problem using a watchdog process that terminates exiftool if the main program dies.

- Phil
Title: Re: Child process don't die
Post by: MT001 on December 20, 2013, 02:59:40 AM
Thanks Phil