Setting memory manager reentrancy without environment variables


I have a multithreaded application where I need to set the environment variable MMGT_REENTRANT=1 in order to protect the memory manager from multiple thread accesses. Is it possible to enable this at development/compile time (either with a variable in the compile environment or in code) so that the application does not need the variable in it's run environment?

Thanks in advance,

Andrey Betenev's picture

Hello Will,

The option to set reentrant mode at runtime is available in the last maintenance release of Open CASCADE Technology 6.2.1 (see Release Notes at, section "Improvements")

Best Regards,