[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.ObjectTracker

Class ObjectTracker

Namespace
GrapeCity.Documents.DX
Assembly
GcDocs.DX.Windows.dll

Track all allocated objects.

public static class ObjectTracker
Inheritance
object
ObjectTracker
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Methods

Find(ComObject)

Finds the object reference for a specific COM object.

public static ObjectReference Find(ComObject comObject)

Parameters

comObject ComObject

The COM object.

Returns

ObjectReference

An object reference

Find(IntPtr)

Finds a list of object reference from a specified COM object pointer.

public static List<ObjectReference> Find(IntPtr comObjectPtr)

Parameters

comObjectPtr System.IntPtr

The COM object pointer.

Returns

System.Collections.Generic.List<T><ObjectReference>

A list of object reference

FindActiveObjects()

Reports all COM object that are active and not yet disposed.

public static List<ObjectReference> FindActiveObjects()

Returns

System.Collections.Generic.List<T><ObjectReference>

ReportActiveObjects()

Reports all COM object that are active and not yet disposed.

public static string ReportActiveObjects()

Returns

string

Track(ComObject)

Tracks the specified COM object.

public static void Track(ComObject comObject)

Parameters

comObject ComObject

The COM object.

UnTrack(ComObject)

Untracks the specified COM object.

public static void UnTrack(ComObject comObject)

Parameters

comObject ComObject

The COM object.

Events

Tracked

Occurs when a ComObject is tracked.

public static event EventHandler<ComObjectEventArgs> Tracked

Event Type

System.EventHandler<TEventArgs><ComObjectEventArgs>

UnTracked

Occurs when a ComObject is untracked.

public static event EventHandler<ComObjectEventArgs> UnTracked

Event Type

System.EventHandler<TEventArgs><ComObjectEventArgs>