I've finished change part of code to prevent memory leaks
Please note that i've changed parts that really needed to me; this wrapper still have several 'memory leaks' routines.
Changed:
- Replace function IrrStr to procedure IrrStr;
Now you need to write something like this -
- Code: Select all
strTerMap : PIrrString;
strTerMap := new(pIrrStringA);
irrStr('media\terrain-heightmap.bmp', strTerMap);
//.... working with strTermap
Dispose(strTerMap);
- Added TVMTManager class to calculate allocated memory in PatchVMTbyVMT procedure
It is possible that other examples should not work now; you need to change works with irrStr procedure.
Now i don't have any memory leaks in Example 12 - Terrain rendering.
You can download it here -
http://dl.dropbox.com/u/3790498/irrlicht/Irrlicht_Test.7z
Thank you,
Alex.