Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

SmallAllocator::Deallocate() fails...

2008-09-11
2013-04-08
  • 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