[omniORB] Re: Invalid heap pointer assertion when string destructor called

K.D.Welast at t-online.de K.D.Welast at t-online.de
Fri Dec 5 15:35:23 GMT 2003


Hello Chris,

the reason for this behavior is, that each DLL is using a separated
heap. By deallocating memory, the DBGHEAP.C check the memory area that
should be freed. If the memory area is not part of the DLL heap, the
assertion fails. But independent of that assertion the memory is still
freed. In your case the memory is allocated outside the DLL but freed
inside the DLL or vs.

My workaround is:
Developing in debug version with static library and use the DLL only in
release version.

Best regards

Kl. D. Welast



More information about the omniORB-list mailing list