logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Curt Arnold <carn...@apache.org>
Subject Re: LOG4CXX_DECODE_CHAR Crash on windows
Date Wed, 18 Nov 2009 03:29:15 GMT
Mismatching run-time libraries is a easy way to manufacture a crash.    
Basically any time one DLL tries to deallocate some resource allocated  
by a DLL using a different run time library (and that includes two  
DLLs that each use /MT since they have the own instances of the run- 
time library), bad things will happen.

To build a DLL using the /MT run-time library and log4cxx, add the  
log4cxx source into your project and set the LOG4CXX_STATIC  
environment variable.  If you try linking with a static library, you  
will only get the classes that you call directly.  The ones that are  
expected to be present when the configuration is read will not have  
been linked into your DLL.


Mime
View raw message