job_s
asked on
Urgent Thread active problem.
I have one MFC application. Some time on one Win 2000 Sp2 machine showing one problem.
Problem is after exiting my app some Treads remaining active.The process is not active on taskmanager but pslist showing the process as active. Any idea ??????
Problem is after exiting my app some Treads remaining active.The process is not active on taskmanager but pslist showing the process as active. Any idea ??????
ASKER
Do u have any idea that how much time it may take to complete the opertaion like pending IO ????
If u r not closing a kernel object in user mode not properly, this may cause problems....
Roshmon
Roshmon
Sometimes you can call CancelIO( handle ). It is not availble on Win 95.
-- Dan
-- Dan
ASKER
hi frieds,
Thanks for Ur responses.I have find out the problem myself .
job_s
Thanks for Ur responses.I have find out the problem myself .
job_s
ASKER
I have find out the solution my self.
The problem was because of teminal services running on that system.When another terminal user runs that APP.It will be shown as a proces on the pslist.
The problem was because of teminal services running on that system.When another terminal user runs that APP.It will be shown as a proces on the pslist.
Good info. I suggest that you post to Community Support and ask to have your points refunded since you found the answer yourself.
I recommend that this NOT be deleted, but rather saved as a PAQ.
-- Dan
I recommend that this NOT be deleted, but rather saved as a PAQ.
-- Dan
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SYMPTOMS
A process continues to exist after a call to the TerminateProcess function on that process has successfully returned.
CAUSE
When there is a request to terminate a process through the TerminateProcess function, Windows stops all the user-mode activity of the target process. However, the target process cannot actually exit until all kernel-mode activity specific to that process is complete. This means that the target process continues to exist until all of its threads have left kernel-mode and all pending IO has been canceled.
This situation occurs as the result of a device driver not releasing a thread or not canceling IO. The process continues to exist until the IO completes and all threads in the process are released from kernel mode.
GOOD LUCK