Suspending ONLY the thread at break point, keeping others running on VC++ 7.0 
Author Message
 Suspending ONLY the thread at break point, keeping others running on VC++ 7.0

I have a need to suspend only one thread at break point while keeping
other threads running.

It seems to me, whenever I hit the break point, all the threads in the
process stops.

Ok, if it is the feature of VC++ de{*filter*} or Win32, I still see there
are Automation objects of the Visual Studio .NET to satisfy such a
need.

I tried to 'thaw' threads through a thread object but they are already
thawed at break point hit.
I tried then to 'resume' threads by invoking Win32 API, no luck. It
already shows that suspend count is zero.

To me, situation like pausing one thread while keeping other alive
seems quite common when one is debugging communication programs, for
example.

Could anybody give me the idea on thread control model of VC++
de{*filter*}?

I'm using Visual Studio .NET on Windows XP.



Sat, 26 Mar 2005 12:23:41 GMT  
 Suspending ONLY the thread at break point, keeping others running on VC++ 7.0
I dont' think it is possible. How to stop just one thread from a process
without interrupt other threads? Since they stay in the same memory space
and it may hurt the process.


Quote:
> I have a need to suspend only one thread at break point while keeping
> other threads running.

> It seems to me, whenever I hit the break point, all the threads in the
> process stops.

> Ok, if it is the feature of VC++ de{*filter*} or Win32, I still see there
> are Automation objects of the Visual Studio .NET to satisfy such a
> need.

> I tried to 'thaw' threads through a thread object but they are already
> thawed at break point hit.
> I tried then to 'resume' threads by invoking Win32 API, no luck. It
> already shows that suspend count is zero.

> To me, situation like pausing one thread while keeping other alive
> seems quite common when one is debugging communication programs, for
> example.

> Could anybody give me the idea on thread control model of VC++
> de{*filter*}?

> I'm using Visual Studio .NET on Windows XP.



Sat, 26 Mar 2005 16:58:38 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. ? Call-Stack and Break-Point windows stick, and debug windows keep resetting

2. RUNNING program under suspended Thread

3. stop at break points when running from TCL script

4. Is intellisense broken in VC 7.0?

5. How to keep threads running?

6. How to keep Threads running?

7. break points - don't break??

8. server sock keeps on getting 204 when i run it from VC++ editor

9. server sock keeps on getting 204 when i run it from VC++ editor

10. Thread Management: Keeping Track of Created Threads

11. Keeping Cursor Open After a RollBack (MFC,ODBC,SQL Server 7.0)

12. NaN comparison still broken with /Ox in VS C++ 7.0

 

 
Powered by phpBB® Forum Software