Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ObjectAllocated Method
Collapse the table of content
Expand the table of content

ICorProfilerCallback::ObjectAllocated Method

Notifies the profiler that memory within the heap has been allocated for an object.


HRESULT ObjectAllocated(
    [in] ObjectID objectId,
    [in] ClassID classId);

Parameters

Parameter Description

objectId

[in] The ID of the object for which memory was allocated.

classId

[in] The ID of the class of which the object is an instance.

The ObjectedAllocated method is not called for allocations from either the stack or unmanaged memory. The classId parameter can refer to a class in managed code that has not been loaded yet. The profiler will receive a class load callback for that class immediately after the ObjectAllocated callback.

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: CorProf.idl

Library: CorGuids.lib

.NET Framework Version: 2.0

Community Additions

ADD
Show:
© 2015 Microsoft