Saturday, May 2, 2015

Problem in killing both Application.exe and launched process Extract.exe from Application.exe in multiple instances environment

Environment: - Windows XP/Windows7 32bit, 64 bit/Windows 2008 Server 64 bit/Windows 2012 Server 64 bit

.

Application Details: -

Application.exe [Visual Studio C# created]

Extract.exe [Visual Studio C# created]

.Net Frame Work: - 3.5 .Net Frame Work

.

Product Description: - We have a product Application.exe, which launch another process Extract.exe in command line for extracting image documents, after extraction; we store data into text file and read from Application.exe and store into data base.

Note: - Application.exe start from services.msc.

.

We run multiple instance of Application.exe after renaming it as Application-FirstInstance.exe, Application-SecondInstance.exe; each application exe launches Extract.exe. We create service for each Application-{Instance}.exe. Application works fine in multiple instances environment, but during run of each service; there are many Extract.exe and Application-{Instance}.exe visible in task manager.

.

Requirement Description: -

We want to kill related Extract.exe on stopping Application-{Instance}.exe from services, and it would be instant operation.

But we have to make sure that related Extract.exe is deleting, while stopping Application-{Instance}.exe from services. What will be right way to identifying particular Application-{Instance}.exe and related Extract.ext and killing operation?

.

Kindly assist us to find the resolution. Please let us know, if more information is required.

We will be really thankful.


Regards, S.P Singh

No comments:

Post a Comment