Re: I downloaded nprof and I was trying to make it attach to an existing process

Matthew Mastracci <[email protected]> Fri, 08 Oct 2004 11:54:20 -0600
Newsgroups gmane.comp.windows.dotnet.nprof.devel
Message-ID <[email protected]>
Unfortunately you can't start profiling a .NET app that's already 
running.  The profiling APIs must be started with the .NET application 
via the environment variables.  Setting them after the program starts 
will have no affect.

The ideal solution is to be able to start/stop the profiler whenever you 
want, but this is a difficult problem to solve (on the agenda for 1.0, 
but not started).

Matt.

Constantine Zachariadis wrote:

>I actually create a new dialog to look at running processes, I added a new ProjectType. I modified the projectoptions form to use this new feature. My problem is on how to attach. In the profile.cs Profile.Start I added code to look for this running process but I guess the hooks are not working. The profiler is not getting kicked off. Any ideas?
>
>
>Thanks
>
>
>Constantine
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
>Use IT products in your business? Tell us what you think of them. Give us
>Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
>http://productguide.itmanagersjournal.com/guidepromo.tmpl
>_______________________________________________
>Nprof-developers mailing list
>Nprof-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>https://lists.sourceforge.net/lists/listinfo/nprof-developers
>
>  
>



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl