Rick van Haasen - 2008-09-11

My application raises an assertion in SmallObjAllocator::Deallocate( void * p )
This application uses a function from a .dll that returns a Loki::SmartPointer.
It looks that the SmallObjAllocator::Allocate(), (indirectly called by the function in the dll) is called on a different SmallObjAllocator object that the main application uses (SmallObjAllocator::DeAllocate), which explains why the deallocation fails.

The Loki stuff is statically linked to both the dll and the main application, which more or less explains the behaviour.

How can i solve this problem, has anyone tried to build a .dll version Loki?

thanks
Rick