Hi M.B.Baiju

If I have not understood correctly, your application launches a sub-process using Thread (),
and your problem is when more than one user launches this process,
if so ..., to avoid this you can create a file in exclusive mode and so on each user waits his turn to execute this sub-process, in addition to adding the Sleep () statement in the sub-process to improve the performance in the background
 

another alternative is to launch an executable instead of a thread launched with thread ()
 
Best Regards
 
"M.B. Baiju" escribió en el mensaje de noticias:41e2a96e$51ab35a9$16aa43@news.alaska-software.com...
 
Hello,
 
My application running mainly in RDP(remote desktop) platforms.
 
Sometimes when customer complaints the system is slow, then we figured out that the problem is due to at some point an error springs up in my programs, the form will be exited from the screen.
 
But when I check the windows taskbar the program thread will be running and I won't know it unless all the users exited from RDP. After exiting, a thread will be running and when I kill that particular thread then only all the RDP users will be able to run the program smoothly.
 
Presently the issue I am confronting is because of the program running in the background, all the RDP clients who are running the program will get slow and resolved if I kill the particular thread.
 
I need to know whether there are any tools to discover or kill that thread that is running in the background because every time I have to exit all the RDP users which are not feasible.
 
M.B.BAIJU