Victor Sotnikov - 2005-08-04

Hi All,

I have the following problem. I have to make a DLL plug-in in configuration where Run-Time Library s used NOT as DLL, but as STATIC library (configurations Multithreaded or Debug Multithreaded).  When I tried to use such library I have met a problem: the DllPlugInTester program fails.

Me version of the reason of the problem is: DllPlugInTester+cppunit*.dll were using DYNAMIC Run-Time Library and my plug-in DLL was using STATIC Run-Time Library simultaneously. Each of the 2 instances of the Run-Time Library uses its one heap; and this leads to memory violation exception when one instance tries to free a data object allocated by another instance.

The question is: may I somehow avoid the problem?

Thanx,
Victor