Thursday, 22 July 2010

Improved wrappers

Rebuilt wrappers used by Naro to add new functionality as shape bounding box, shape property modules.
Used this opportunity to add finalizers at around 20 packages most used in Naro. Now the memory leaks are greatly reduced.

Developers that are using the new wrappers to avoid crashes must configure their OCC to protect against multithreading memory alloc/dealloc crashes (MMGT_OPT=1, MMGT_REENTRANT=1). The problem we encountered was that the .Net GC kicks in as another thread so Naro and GC threads are using the same OCC memory management mechanism. This issue was solved by making MMGT_REENTRANT=1.
Improved also the wrappers generation template to include finalizers.

No comments:

Post a Comment