THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 19/12/2012 at 18:56, xxxxxxxx wrote:
Cinema 4D Version:
Platform: Windows ;
Language(s) : C++ ;
Hi fellow developers,
I have bound the _melange_ memory allocation functions to a custom memory manager initialized only after the program have reached WinMain().
In Release mode only, it seems that _melange_ use some kinf of CRT instructions to init the inner structure _melange_::InitStrings, whose constructor calls _melange_::InitStrings::InitStrings().
It leads to two calls to _melange_::MemAlloc(VLONG), each one trying to allocate 131072 bytes before I even get the chance to execute a line of my code.
I've found a workaround to prevent my allocator for crashing but it's not efficient nor elegant.