Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / August 2006

Tip: Looking for answers? Try searching our database.

Reading a threads program counter in C#

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
joseandremorales@gmail.com - 16 Aug 2006 02:01 GMT
HI everyone,  Im hoping you can help me with this question.

 I have written an app in C# .NET to enumerate all currently running
processes in a pocketpc, i choose a process and then enumerate all of
it's associated threads.  Im stuck on figuring out how I can read a
specific thread's R15 (program counter) to find out the next
instruction it is going to execute from within my c# program, any ideas
on this would be paramount and i thank for your time.  

Jose.
Nicholas Paldino [.NET/C# MVP] - 16 Aug 2006 02:56 GMT
Jose,

   To what end are you trying to do this?  For something like this, I don't
even know if it is possible to throttle threads like this.  It would require
a custom hosting environment (custom CLR host) for sure, at the least, if it
even is possible.

Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.com

> HI everyone,  Im hoping you can help me with this question.
>
[quoted text clipped - 6 lines]
>
> Jose.
Willy Denoyette [MVP] - 23 Aug 2006 23:06 GMT
| HI everyone,  Im hoping you can help me with this question.
|
[quoted text clipped - 6 lines]
|
| Jose.

Absolutely impossible from within the running application, even a debugger
cannot do this without stopping the running target thread. What are you
trying to achieve?

Willy.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.