Solved

Urgent Thread active problem.

Posted on 2002-04-18
9
183 Views
Last Modified: 2013-11-20
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 ??????
0
Comment
Question by:job_s
  • 3
  • 2
  • 2
  • +1
9 Comments
 
LVL 23

Expert Comment

by:Roshan Davis
ID: 6952886
MSDN Says

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
0
 
LVL 3

Author Comment

by:job_s
ID: 6952978
Do u have any idea that how much time it may take to complete the opertaion like pending IO ????
0
 
LVL 23

Expert Comment

by:Roshan Davis
ID: 6953073
If u r not closing a kernel object in user mode not properly, this may cause problems....


Roshmon
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 6959149
Sometimes you can call CancelIO( handle ).  It is not availble on Win 95.

-- Dan
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 3

Author Comment

by:job_s
ID: 6962773
hi frieds,

    Thanks for Ur responses.I have find out the problem myself .

job_s
0
 
LVL 3

Author Comment

by:job_s
ID: 6962780
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.

0
 
LVL 49

Expert Comment

by:DanRollins
ID: 6963585
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
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 11428682
PAQed, with points refunded (200)

Netminder
EE Admin
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to calculate times for developing software? 8 65
twoTwo  challenge 35 93
post4 challenge 28 93
NotAlone Challenge 20 79
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now