releasing the unnecessary GDI object

Hello,
The number of the counters of the GDI object continues increasing when I continue increasing sketching features in SW2015, and SW crashes by a resource error.
I changed the set point from 10000 to 16000 with a value of the max using registry, but SW2015 crashes.

SPR # 936551

Please tell me API releasing the number of the counters of the unnecessary GDI object.

Could someone with similar experiences help me out here ?

Thanks,

Toru

SolidworksApi macros