This documentation is deprecated and will no longer be updated. Please use the official documentation at vanillapdf.readthedocs.io.
Vanilla.PDF  2.3.0
Cross-platform toolkit for creating and modifying PDF documents
List of all members
ObjectDiagnostics Class Reference

Provides runtime introspection of the object lifecycle. More...

error_type CALLING_CONVENTION ObjectDiagnostics_GetActiveObjectCount (bigint_type *result)
 Get the number of currently live IUnknown-derived objects.
 
error_type CALLING_CONVENTION ObjectDiagnostics_GetPeakObjectCount (bigint_type *result)
 Get the peak number of simultaneously live objects since startup or last reset.
 
error_type CALLING_CONVENTION ObjectDiagnostics_GetTotalObjectsCreated (bigint_type *result)
 Get the total number of objects created since startup or last reset.
 
error_type CALLING_CONVENTION ObjectDiagnostics_ResetCounters ()
 Reset peak and total counters to current active count.
 

Detailed Description

Provides runtime introspection of the object lifecycle.

All objects in the library derive from IUnknown and are reference-counted. This class exposes thread-safe counters that track the number of live objects, which can be used to detect memory leaks or monitor allocation patterns.

Typical usage: check that ActiveObjectCount returns to its baseline after releasing all handles to verify that no objects were leaked.


The documentation for this class was generated from the following file: