Child process don't die

Started by MT001, December 19, 2013, 04:18:15 PM

Previous topic - Next topic

MT001

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

Phil Harvey

With the C++ Interface for ExifTool, I solved this problem using a watchdog process that terminates exiftool if the main program dies.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

MT001

#2
Thanks Phil