Hello,

I am having a problem with the profiling and the Profiling API.

#1
In the implementation of ICorProfilerCallback interface, I tried to create a
dedicated thread (using the CreateThread function) that forces GC (i.e.
ICorProfilerInfo::ForceGC) every x-KB allocation.

However, every time this dedicated thread calls ForceGC method the system
just crashes.

Moreover, I still got numerous ObjectAllocated callbacks after the ForceGC.
Should ForceGC immediately suspend all the threads?

#2
Is there a way to debug the profiler (i.e. the implementation of
ICorProfilerCallback interface) using VS. NET? For example, I would like to
profile a HelloWorld program and set the breakpoint in the
ICorProfilerCallback::Initialize method.

Thank you very much beforehand.


Memomana

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com
ASP.NET courses you may be interested in:

Guerrilla ASP.NET
15 March 2004, in Boston, MA
17 May 2004 in Torrance, CA
7 June 2004, London, UK

http://www.develop.com/courses/gaspdotnetls

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to