THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 02/11/2004 at 23:33, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.503
Platform: Windows ;
Language(s) : C++ ;
---------
Is it possible to use the MemoryPool class memory to allocate/store classes and class arrays (instead of using gNew/bNew)?
If not, is there any way to reduce heap fragmentation beyond the known approaches:
1. less dynamic allocation - can't be helped, I'm parsing massive, very flexible files into numerous classes and massive objects with massive data. Alot of this memory (mainly classes) is freed immediately (and completely) after use.
2. larger allocation blocks - has helped minimally so far. Because I use a class system to encapsulate the file section types, bNew EveryClassType[n] just won't do, now will it? If you think otherwise, please elucidate.
3. compression, optimizations, etc. - have helped greatly, but not sufficiently enough.
I've never had to deal with memory usage on this scale, so any help, links, pointers will be appreciated!
Thanks,
Robert