Pravin S. Waghurde
2010-09-03 16:08:03 UTC
Hello everbody!!!
I am using CreateRemoteThread() function for injecting the ThreadProc into
one of the windodws service.
Then performing some task and and getting return. This works fine on most
of the system but few of systems get hang once we call CreateRemoteThread().
After i track for the issue i found that when i use try/catch in ThreadProc
the hang issue is occuring and once i remove the try/catch the ThreadProc
complets correctly.
Can any body tell me whats going wrong here. Whether using the try/catch in
CreateRemoteThread()'s ThreadProc is not safe specially when the target
process is windows service.
Thanks for the help in advance.
I am using CreateRemoteThread() function for injecting the ThreadProc into
one of the windodws service.
Then performing some task and and getting return. This works fine on most
of the system but few of systems get hang once we call CreateRemoteThread().
After i track for the issue i found that when i use try/catch in ThreadProc
the hang issue is occuring and once i remove the try/catch the ThreadProc
complets correctly.
Can any body tell me whats going wrong here. Whether using the try/catch in
CreateRemoteThread()'s ThreadProc is not safe specially when the target
process is windows service.
Thanks for the help in advance.