PDA

Click to See Complete Forum and Search --> : Killing Process [constraint of timestamp]


aashish_bg
Apr 19th, 2004, 12:21 PM
I have a Class file deployed on Win2000 Server in form of a DLL which

generates Excel Report.

Many clients can generate the excel report concurrently. Sometimes one or two

of the Excel process gets hang up.

I need an application in VB(running on Win2000 Server) which only checks for

the process "Excel.Exe" (there may be many excel.exe running in the task

manager at the same time) and if the time-stamp of that is greater than 60 sec. ,

i need to kill that Excel.Exe process without disturbing other Excel.exe or other

processes.

Regards,

alex_read
Apr 20th, 2004, 09:56 AM
You shouldn't need to do any of this. How are you closing down your excel objects from memory from your code?

aashish_bg
Apr 20th, 2004, 10:05 AM
Its necessary to do that...
The problem is if 3 or 4 process of Excel hangs up at the Server they restrict all the others (reports) to be created.
So i need to kill only those which are hang up.
The time to generate the excel in worst condition is : 40 sec.
So if it takes more than that it means it is hang up.