Memory manager of the sgCore library.


The internal memory manager causes dynamic memory allocation and release in the sgCore library. It allows to detect memory leakage in case of the incorrect library use.


Inside the sgFreeKernel() function call the check for the user's correct work with library objects takes place besides the internal library structures release. In case of memory leakage you'll get the message about the number of unreleased objects and the volume of unreleased memory.


For example, this code:


sgCSphere* sph = sgCreateSphere(10,36,36);



will display the following message:




If you get such a message you should find the location of the incorrect work with sgCore functions and classes.