<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-150</id>
	<title>Nabble - Log4cxx - Users</title>
	<updated>2009-12-18T14:08:10Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Log4cxx---Users-f150.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Log4cxx---Users-f150.html" />
	<subtitle type="html">Logging services for C++</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26850371</id>
	<title>Using log4cxx::logstream in generic programming</title>
	<published>2009-12-18T14:08:10Z</published>
	<updated>2009-12-18T14:08:10Z</updated>
	<author>
		<name>Bugzilla from rhys.ulerich@gmail.com</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&lt;br&gt;I'd like to be able to use log4cxx::logstream instances within generic
&lt;br&gt;programming. &amp;nbsp;My goal is pass log4cxx::logstream instances into
&lt;br&gt;templated code expecting basic_ostream instances and have everything
&lt;br&gt;work out.
&lt;br&gt;&lt;br&gt;I've run into two problems.
&lt;br&gt;&lt;br&gt;First, there's no generic way to use std::endl for both
&lt;br&gt;log4cxx::logstream and std::basic_ostream. &amp;nbsp;Here's a test case against
&lt;br&gt;log4cxx 0.10.0 that illustrates the difficulty:
&lt;br&gt;&lt;br&gt;#include &amp;lt;iostream&amp;gt;
&lt;br&gt;#include &amp;lt;log4cxx/logger.h&amp;gt;
&lt;br&gt;#include &amp;lt;log4cxx/stream.h&amp;gt;
&lt;br&gt;&lt;br&gt;template&amp;lt; typename OStream &amp;gt;
&lt;br&gt;void test_it(OStream &amp; os)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; // std::endl&amp;lt;Elem,Tr&amp;gt; can be deduced for std::cout argument
&lt;br&gt;&amp;nbsp; &amp;nbsp; // std::endl&amp;lt;Elem,Tr&amp;gt; cannot be deduced for log4cxx::logstream argument
&lt;br&gt;&amp;nbsp; &amp;nbsp; os &amp;lt;&amp;lt; &amp;quot;Foo&amp;quot; &amp;lt;&amp;lt; std::endl;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; // std::endl&amp;lt;char,std::traits&amp;lt;char&amp;gt; &amp;gt; works for std::cout and
&lt;br&gt;&amp;nbsp; &amp;nbsp; // log4cxx::logstream
&lt;br&gt;&amp;nbsp; &amp;nbsp; os &amp;lt;&amp;lt; &amp;quot;Bar&amp;quot; &amp;lt;&amp;lt; std::endl&amp;lt;char, std::char_traits&amp;lt;char&amp;gt; &amp;gt;;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; // std::endl&amp;lt;typename OStream::char_type, std::char_traits&amp;lt;typename
&lt;br&gt;&amp;nbsp; &amp;nbsp; // OStream::char_type&amp;gt; works for std::cout but does not work for
&lt;br&gt;&amp;nbsp; &amp;nbsp; // log4cxx::logstream due to no char_type typedef
&lt;br&gt;&amp;nbsp; &amp;nbsp; os &amp;lt;&amp;lt; &amp;quot;Baz&amp;quot; &amp;lt;&amp;lt; std::endl&amp;lt;typename OStream::char_type,
&lt;br&gt;std::char_traits&amp;lt;typename OStream::char_type&amp;gt; &amp;gt;;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;int main(int argc, char* argv[]) {
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; test_it(std::cout);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; log4cxx::LoggerPtr logger = log4cxx::Logger::getRootLogger();
&lt;br&gt;&amp;nbsp; &amp;nbsp; log4cxx::logstream logstream(logger, log4cxx::Level::getInfo());
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; test_it(logstream);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; return 0;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;I expect that at least the &amp;quot;Baz&amp;quot; line works for both std::cout and
&lt;br&gt;log4cxx::logbase, and ideally the &amp;quot;Foo' line would too. &amp;nbsp;At least for
&lt;br&gt;the &amp;quot;Baz&amp;quot; case it occurs because log4cxx::logstream lacks typedefs a
&lt;br&gt;la basic_ostream
&lt;br&gt;(&lt;a href=&quot;http://www.dinkumware.com/manuals/default.aspx?manual=compleat&amp;page=ostream.html#basic_ostream&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.dinkumware.com/manuals/default.aspx?manual=compleat&amp;page=ostream.html#basic_ostream&lt;/a&gt;).
&lt;br&gt;&amp;nbsp;I'm not sure if the &amp;quot;Foo&amp;quot; case could be made to work. &amp;nbsp;If the &amp;quot;Baz&amp;quot;
&lt;br&gt;case worked it might just require adding a template declarations to
&lt;br&gt;log4cxx/stream.h that attempts to use the char_type and traits_type
&lt;br&gt;typedef to fix the appropriate std::endl template.
&lt;br&gt;&lt;br&gt;Second, even if the first part did work, it seems that without the
&lt;br&gt;magic log4cxx_base::endmsg manipulator that the messages are never
&lt;br&gt;written. &amp;nbsp;This is much less than generic, and I'd like to have
&lt;br&gt;std::endl take the role of log4stream_base::endmsg whenever it is
&lt;br&gt;encountered. &amp;nbsp;From looking at Stroustrup's C++ programming language
&lt;br&gt;section 21.4.6 I don't see how to intercept the single std::endl
&lt;br&gt;manipulator and cause it to insert a log4stream_base::endmsg. &amp;nbsp;I could
&lt;br&gt;be missing something.
&lt;br&gt;&lt;br&gt;Any help appreciated,
&lt;br&gt;Rhys
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Using-log4cxx%3A%3Alogstream-in-generic-programming-tp26850371p26850371.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26637536</id>
	<title>Re: How to build a x64 library on windows with Visual Studio?</title>
	<published>2009-12-03T19:53:58Z</published>
	<updated>2009-12-03T19:53:58Z</updated>
	<author>
		<name>Curt Arnold-3</name>
	</author>
	<content type="html">I do not believe that you should need to change any code. &amp;nbsp;Been a while since I've tested a Win64 build, but I think the Ant driven VC++ build completed without issue. &amp;nbsp;Don't recall the experience building within Visual Studio.
&lt;br&gt;&lt;br&gt;Likely a project file issue. &amp;nbsp;The .vcproj file in the release is generated from the Ant build script, not Visual Studio, so it might be missing some features. &amp;nbsp;You could likely generate an empty project file in Visual Studio and then copy the guts of the .vcproj in the release and it would resolve the issue.
&lt;br&gt;&lt;br&gt;_WIN32 is defined for all Windows builds including x86_64 and Itanium builds. &amp;nbsp;_WIN64 is only defined for 64-bit builds. &amp;nbsp;The only place you need to have _WIN64 is where the code differs between 64 and 32 bit Windows and in general that is usually places where the _WIN64 code would work with current 32-bit compilers but the 32-bit specific code will work with VC 6 and the like.</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-How-to-build-a-x64-library-on-windows-with-Visual-Studio--tp26607659p26637536.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26609665</id>
	<title>Re: How to build a x64 library on windows with Visual Studio?</title>
	<published>2009-12-02T06:21:34Z</published>
	<updated>2009-12-02T06:21:34Z</updated>
	<author>
		<name>Zhou Tao</name>
	</author>
	<content type="html">&lt;div&gt;Hi Lars,&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Thanks your response.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;I have ported the log4cxx to a new VS2005 project which is defined to be x64 and build with APR, APR-util in the same solution. But I don&amp;#39;t replace the WIN32 with WIN64 and still use the WIN32 on windows64 platform. Though I got some warning message when to build the APR libs, finally I build out the log4cxx dll. And used it in my application, so far it works well.&lt;/div&gt;

&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Thanks, &lt;/div&gt;
&lt;div&gt;Tom&lt;/div&gt;
&lt;div class=&quot;gmail_quote&quot;&gt;2009/12/2 Lars Schouw &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26609665&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;schouwla@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;
&lt;blockquote style=&quot;BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex&quot; class=&quot;gmail_quote&quot;&gt;
&lt;div&gt;
&lt;div style=&quot;FONT-FAMILY: &amp;#39;times new roman&amp;#39;, &amp;#39;new york&amp;#39;, times, serif; FONT-SIZE: 12pt&quot;&gt;
&lt;div&gt;By replacing WIN32 with WIN64 I mean that you need to &lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;
&lt;div&gt;find all #ifdef WIN32 etc.. and replace them with #ifdef WIN64&lt;/div&gt;
&lt;div style=&quot;FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt&quot;&gt;&lt;br&gt;
&lt;div style=&quot;FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt&quot;&gt;
&lt;div class=&quot;hm&quot;&gt;&lt;font size=&quot;2&quot; face=&quot;Tahoma&quot;&gt;
&lt;hr size=&quot;1&quot;&gt;
&lt;b&gt;&lt;span style=&quot;FONT-WEIGHT: bold&quot;&gt;From:&lt;/span&gt;&lt;/b&gt; Lars Schouw &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26609665&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;schouwla@...&lt;/a&gt;&amp;gt;&lt;br&gt;&lt;b&gt;&lt;span style=&quot;FONT-WEIGHT: bold&quot;&gt;To:&lt;/span&gt;&lt;/b&gt; Log4CXX User &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26609665&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;log4cxx-user@...&lt;/a&gt;&amp;gt;&lt;br&gt;
&lt;b&gt;&lt;span style=&quot;FONT-WEIGHT: bold&quot;&gt;Sent:&lt;/span&gt;&lt;/b&gt; Wed, December 2, 2009 8:44:02 PM&lt;br&gt;&lt;b&gt;&lt;span style=&quot;FONT-WEIGHT: bold&quot;&gt;Subject:&lt;/span&gt;&lt;/b&gt; Re: How to build a x64 library on windows with Visual Studio?&lt;br&gt;&lt;/font&gt;&lt;/div&gt;

&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
&lt;div style=&quot;FONT-FAMILY: &amp;#39;times new roman&amp;#39;, &amp;#39;new york&amp;#39;, times, serif; FONT-SIZE: 12pt&quot;&gt;
&lt;div&gt;Hi Tom,&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;
&lt;div&gt;You need to open the solution in VS2008 and then select build -&amp;gt; Configuration manager. Then select new under active platform and choose to copy the win32 to x64. I the projects you need to replace WIN32 with WIN64. There might be more you need to do... that is a good start.&lt;/div&gt;

&lt;div&gt;&lt;br&gt;&lt;/div&gt;
&lt;div&gt;I assume is is the same under VS2005.&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;
&lt;div&gt;Lars&lt;/div&gt;
&lt;div style=&quot;FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt&quot;&gt;&lt;br&gt;
&lt;div style=&quot;FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt&quot;&gt;&lt;font size=&quot;2&quot; face=&quot;Tahoma&quot;&gt;
&lt;hr size=&quot;1&quot;&gt;
&lt;b&gt;&lt;span style=&quot;FONT-WEIGHT: bold&quot;&gt;From:&lt;/span&gt;&lt;/b&gt; Zhou Tao &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26609665&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;zhoutao109@...&lt;/a&gt;&amp;gt;&lt;br&gt;&lt;b&gt;&lt;span style=&quot;FONT-WEIGHT: bold&quot;&gt;To:&lt;/span&gt;&lt;/b&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26609665&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;log4cxx-user@...&lt;/a&gt;&lt;br&gt;
&lt;b&gt;&lt;span style=&quot;FONT-WEIGHT: bold&quot;&gt;Sent:&lt;/span&gt;&lt;/b&gt; Fri, September 4, 2009 12:34:54 AM&lt;br&gt;&lt;b&gt;&lt;span style=&quot;FONT-WEIGHT: bold&quot;&gt;Subject:&lt;/span&gt;&lt;/b&gt; How to build a x64 library on windows with Visual Studio?&lt;br&gt;&lt;/font&gt;&lt;br&gt;
&lt;div&gt;Hi all,&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;I am trying to build the log4cxx libraries on a Windows x64 2003 server. I use a Visual Studio 2005 as the compiling tool.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;I can build the APR, APR-UTIL with x64 option, however for log4cxx.dsp the x64 option in Visual Studio 2005 is disabled.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;So how to use or build the log4cxx on a winx64 server.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Thanks tons,&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Tom&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Thanks and Regards,&lt;br&gt;Tom&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-How-to-build-a-x64-library-on-windows-with-Visual-Studio--tp26607659p26609665.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26607659</id>
	<title>Re: How to build a x64 library on windows with Visual Studio?</title>
	<published>2009-12-02T03:50:52Z</published>
	<updated>2009-12-02T03:50:52Z</updated>
	<author>
		<name>Lars Schouw</name>
	</author>
	<content type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;div style=&quot;font-family:'times new roman', 'new york', times, serif;font-size:12pt&quot;&gt;&lt;div&gt;By replacing WIN32 with WIN64 I mean that you need to&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;find all #ifdef WIN32 etc.. and replace them with&amp;nbsp;#ifdef WIN64&lt;/div&gt;&lt;div style=&quot;font-family:times new roman, new york, times, serif;font-size:12pt&quot;&gt;&lt;br&gt;&lt;div style=&quot;font-family:times new roman, new york, times, serif;font-size:12pt&quot;&gt;&lt;font size=&quot;2&quot; face=&quot;Tahoma&quot;&gt;&lt;hr size=&quot;1&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;From:&lt;/span&gt;&lt;/b&gt; Lars Schouw &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26607659&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;schouwla@...&lt;/a&gt;&amp;gt;&lt;br&gt;&lt;b&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;To:&lt;/span&gt;&lt;/b&gt; Log4CXX User &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26607659&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;log4cxx-user@...&lt;/a&gt;&amp;gt;&lt;br&gt;&lt;b&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Sent:&lt;/span&gt;&lt;/b&gt; Wed, December 2, 2009 8:44:02 PM&lt;br&gt;&lt;b&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Subject:&lt;/span&gt;&lt;/b&gt; Re: How to build a x64 library on windows with Visual Studio?&lt;br&gt;&lt;/font&gt;&lt;br&gt;
&lt;div style=&quot;font-family:'times new roman', 'new york', times, serif;font-size:12pt;&quot;&gt;&lt;div&gt;Hi Tom,&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;You need to open the solution in VS2008 and then select build -&amp;gt; Configuration manager. Then select new under active platform and choose to copy the win32 to x64. I the projects you need to replace WIN32 with WIN64. There might be more you need to do... that is a good start.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I assume is is the same under VS2005.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Lars&lt;/div&gt;&lt;div style=&quot;font-family:times new roman, new york, times, serif;font-size:12pt;&quot;&gt;&lt;br&gt;&lt;div style=&quot;font-family:times new roman, new york, times, serif;font-size:12pt;&quot;&gt;&lt;font size=&quot;2&quot; face=&quot;Tahoma&quot;&gt;&lt;hr size=&quot;1&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;From:&lt;/span&gt;&lt;/b&gt; Zhou Tao &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26607659&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;zhoutao109@...&lt;/a&gt;&amp;gt;&lt;br&gt;&lt;b&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;To:&lt;/span&gt;&lt;/b&gt;
 &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26607659&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;log4cxx-user@...&lt;/a&gt;&lt;br&gt;&lt;b&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Sent:&lt;/span&gt;&lt;/b&gt; Fri, September 4, 2009 12:34:54 AM&lt;br&gt;&lt;b&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Subject:&lt;/span&gt;&lt;/b&gt; How to build a x64 library on windows with Visual Studio?&lt;br&gt;&lt;/font&gt;&lt;br&gt;
&lt;div&gt;Hi all,&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;I am trying to build the log4cxx libraries on a Windows x64 2003 server. I use a Visual Studio 2005 as the compiling tool.&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;I can build the APR, APR-UTIL with x64 option, however for log4cxx.dsp the x64 option in Visual Studio 2005 is disabled.&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;So how to use or build the log4cxx on a winx64 server.&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Thanks tons,&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Tom&lt;/div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;&quot;&gt;&lt;/div&gt;



&lt;/div&gt;&lt;br&gt;



      &lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;position:fixed&quot;&gt;&lt;/div&gt;


&lt;!-- cg24.c2.mail.ac4.yahoo.com compressed/chunked Wed Dec  2 03:26:54 PST 2009 --&gt;
&lt;/div&gt;&lt;br&gt;

      &lt;/body&gt;&lt;/html&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-How-to-build-a-x64-library-on-windows-with-Visual-Studio--tp26607659p26607659.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26607578</id>
	<title>Re: How to build a x64 library on windows with Visual Studio?</title>
	<published>2009-12-02T03:44:02Z</published>
	<updated>2009-12-02T03:44:02Z</updated>
	<author>
		<name>Lars Schouw</name>
	</author>
	<content type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;div style=&quot;font-family:'times new roman', 'new york', times, serif;font-size:12pt&quot;&gt;&lt;div&gt;Hi Tom,&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;You need to open the solution in VS2008 and then select build -&amp;gt; Configuration manager. Then select new under active platform and choose to copy the win32 to x64. I the projects you need to replace WIN32 with WIN64. There might be more you need to do... that is a good start.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I assume is is the same under VS2005.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Lars&lt;/div&gt;&lt;div style=&quot;font-family:times new roman, new york, times, serif;font-size:12pt&quot;&gt;&lt;br&gt;&lt;div style=&quot;font-family:times new roman, new york, times, serif;font-size:12pt&quot;&gt;&lt;font size=&quot;2&quot; face=&quot;Tahoma&quot;&gt;&lt;hr size=&quot;1&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;From:&lt;/span&gt;&lt;/b&gt; Zhou Tao &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26607578&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;zhoutao109@...&lt;/a&gt;&amp;gt;&lt;br&gt;&lt;b&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;To:&lt;/span&gt;&lt;/b&gt;
 &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26607578&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;log4cxx-user@...&lt;/a&gt;&lt;br&gt;&lt;b&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Sent:&lt;/span&gt;&lt;/b&gt; Fri, September 4, 2009 12:34:54 AM&lt;br&gt;&lt;b&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Subject:&lt;/span&gt;&lt;/b&gt; How to build a x64 library on windows with Visual Studio?&lt;br&gt;&lt;/font&gt;&lt;br&gt;
&lt;div&gt;Hi all,&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;I am trying to build the log4cxx libraries on a Windows x64 2003 server. I use a Visual Studio 2005 as the compiling tool.&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;I can build the APR, APR-UTIL with x64 option, however for log4cxx.dsp the x64 option in Visual Studio 2005 is disabled.&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;So how to use or build the log4cxx on a winx64 server.&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Thanks tons,&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Tom&lt;/div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;position:fixed&quot;&gt;&lt;/div&gt;


&lt;!-- cg24.c2.mail.ac4.yahoo.com compressed/chunked Wed Dec  2 03:26:54 PST 2009 --&gt;
&lt;/div&gt;&lt;br&gt;



      &lt;/body&gt;&lt;/html&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-build-a-x64-library-on-windows-with-Visual-Studio--tp25278608p26607578.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26495004</id>
	<title>Re: Problems executing application with log4cxx</title>
	<published>2009-11-24T04:23:34Z</published>
	<updated>2009-11-24T04:23:34Z</updated>
	<author>
		<name>carlos_jimenez</name>
	</author>
	<content type="html">The problem seems to be the size of log file, but now I have another problem.
&lt;br&gt;If I want to use logger Sistema.RTEST, it doesn't work, but if I use &amp;nbsp;
&lt;br&gt;rootLooger, works fine.
&lt;br&gt;&lt;br&gt;&lt;br&gt;SistemaRTEST4Cilindres.cpp
&lt;br&gt;&lt;br&gt;#include &amp;quot;SistemaRTEST4Cilindres.h&amp;quot;
&lt;br&gt;&lt;br&gt;LoggerPtr loggerSistemaRTEST(Logger::getLogger(&amp;quot;Sistema.RTEST&amp;quot;));
&lt;br&gt;//LoggerPtr loggerSistemaRTEST(Logger::getRootLogger());
&lt;br&gt;&lt;br&gt;void SistemaRTEST4Cilindres::obrirTargetes(){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;LOG4CXX_INFO(loggerSistemaRTEST, &amp;quot;Abrimos los dispositivos para &amp;nbsp;
&lt;br&gt;las targetas que tenemos&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;// EDITAR:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;targetes[iE6229_1]-&amp;gt;open(&amp;quot;/dev/comedi0&amp;quot;);
&lt;br&gt;}
&lt;br&gt;....
&lt;br&gt;The only difference with other examples is that this code is inside a &amp;nbsp;
&lt;br&gt;directory.
&lt;br&gt;&lt;br&gt;main.cpp
&lt;br&gt;Sistema/SistemaRTEST4Cilindres.h
&lt;br&gt;Sistema/SistemaRTEST4Cilindres.cpp
&lt;br&gt;&lt;br&gt;I've tested in the main directoy and that worked correctly. That's &amp;nbsp;
&lt;br&gt;what I'm doing wrong?
&lt;br&gt;&lt;br&gt;Thank you
&lt;br&gt;&lt;br&gt;Quoting &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26495004&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;carlos_jimenez@...&lt;/a&gt;:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; First, sorry for my english.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm new with log4cxx and I have problems. When I use
&lt;br&gt;&amp;gt; PropertyConfiguration into my code, application crashes, but if I use
&lt;br&gt;&amp;gt; BasicConfiguration, works fine.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; #include &amp;lt;log4cxx/logger.h&amp;gt;
&lt;br&gt;&amp;gt; #include &amp;lt;log4cxx/propertyconfigurator.h&amp;gt;
&lt;br&gt;&amp;gt; #include &amp;quot;Sistema/SistemaRTEST4Cilindres.h&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; using namespace log4cxx;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; LoggerPtr logger(Logger::getLogger(&amp;quot;main&amp;quot;));
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; int main(int argc, char *argv[]){
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; SistemaRTEST4Cilindres *sistema=NULL;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; PropertyConfigurator::configure(&amp;quot;/etc/rtai/log/log4cxx.properties&amp;quot;);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; LOG4CXX_FATAL(logger, '\n');
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; LOG4CXX_INFO(logger, &amp;quot;Programa main(): Cargamos el sistema&amp;quot;);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ....
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; /etc/rtai/log/log4cxx.properties
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; # Sample ResourceBundle properties file
&lt;br&gt;&amp;gt; log4j.rootLogger=INFO, R
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; log4j.appender.R=org.apache.log4j.RollingFileAppender
&lt;br&gt;&amp;gt; log4j.appender.R.File=/var/log/rtaid.log
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; log4j.appender.R.MaxFileSize=200KB
&lt;br&gt;&amp;gt; log4j.appender.R.MaxBackupIndex=10
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; log4j.appender.R.layout=org.apache.log4j.PatternLayout
&lt;br&gt;&amp;gt; log4j.appender.R.layout.ConversionPattern=%d [%t] %-3p (%F:%L) - %m%n
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; log4j.logger.Cicle=WARN
&lt;br&gt;&amp;gt; log4j.logger.DadesFase=WARN
&lt;br&gt;&amp;gt; log4j.logger.Fase=WARN
&lt;br&gt;&amp;gt; log4j.logger.Modul=WARN
&lt;br&gt;&amp;gt; log4j.logger.Sistema=WARN
&lt;br&gt;&amp;gt; #log4j.logger.Sistema.RTEST=WARN
&lt;br&gt;&amp;gt; log4j.logger.Transicions=WARN
&lt;br&gt;&amp;gt; #log4j.logger.ServidorDades=WARN
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; My host OS is Debian, someone have any idea??
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thank you.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; Carlos Jiménez
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ENCOPIM S.L.
&lt;br&gt;&amp;gt; C/. del Parc 5 (nau 13), P.I. Els Pinetons
&lt;br&gt;&amp;gt; E-08291 RIPOLLET (Barcelona)
&lt;br&gt;&amp;gt; Tel: (+34) 935 94 23 47
&lt;br&gt;&amp;gt; Fax: (+34) 935 94 64 15
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ==========================================================
&lt;br&gt;&amp;gt; La información contenida en la presente transmisión es confidencial y su
&lt;br&gt;&amp;gt; uso únicamente está permitido a su(s) destinatario(s). Si Ud. no es la
&lt;br&gt;&amp;gt; persona destinataria de la presente transmisión, rogamos nos lo
&lt;br&gt;&amp;gt; comunique de manera inmediata por teléfono (+34 935 942 347) y destruya
&lt;br&gt;&amp;gt; cualquier copia de la misma (tanto digitales como en papel).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The information contained in this transmission is confidential and is
&lt;br&gt;&amp;gt; intended only for the use of the addressee(s). If you are not the
&lt;br&gt;&amp;gt; designated recipient of this transmission, please advise us immediately
&lt;br&gt;&amp;gt; by telephone (+34 935 942 347) and destroy any copies (digital and
&lt;br&gt;&amp;gt; paper).
&lt;br&gt;&amp;gt; ==========================================================
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Carlos Jiménez
&lt;br&gt;&lt;br&gt;ENCOPIM S.L.
&lt;br&gt;C/. del Parc 5 (nau 13), P.I. Els Pinetons
&lt;br&gt;E-08291 RIPOLLET (Barcelona)
&lt;br&gt;Tel: (+34) 935 94 23 47
&lt;br&gt;Fax: (+34) 935 94 64 15
&lt;br&gt;&lt;br&gt;==========================================================
&lt;br&gt;La información contenida en la presente transmisión es confidencial y su
&lt;br&gt;uso únicamente está permitido a su(s) destinatario(s). Si Ud. no es la
&lt;br&gt;persona destinataria de la presente transmisión, rogamos nos lo
&lt;br&gt;comunique de manera inmediata por teléfono (+34 935 942 347) y destruya
&lt;br&gt;cualquier copia de la misma (tanto digitales como en papel).
&lt;br&gt;&lt;br&gt;The information contained in this transmission is confidential and is
&lt;br&gt;intended only for the use of the addressee(s). If you are not the
&lt;br&gt;designated recipient of this transmission, please advise us immediately
&lt;br&gt;by telephone (+34 935 942 347) and destroy any copies (digital and
&lt;br&gt;paper).
&lt;br&gt;==========================================================
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problems-executing-application-with-log4cxx-tp26494807p26495004.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26494807</id>
	<title>Problems executing application with log4cxx</title>
	<published>2009-11-24T04:05:43Z</published>
	<updated>2009-11-24T04:05:43Z</updated>
	<author>
		<name>carlos_jimenez</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;First, sorry for my english.
&lt;br&gt;&lt;br&gt;I'm new with log4cxx and I have problems. When I use &amp;nbsp;
&lt;br&gt;PropertyConfiguration into my code, application crashes, but if I use &amp;nbsp;
&lt;br&gt;BasicConfiguration, works fine.
&lt;br&gt;&lt;br&gt;#include &amp;lt;log4cxx/logger.h&amp;gt;
&lt;br&gt;#include &amp;lt;log4cxx/propertyconfigurator.h&amp;gt;
&lt;br&gt;#include &amp;quot;Sistema/SistemaRTEST4Cilindres.h&amp;quot;
&lt;br&gt;&lt;br&gt;using namespace log4cxx;
&lt;br&gt;&lt;br&gt;LoggerPtr logger(Logger::getLogger(&amp;quot;main&amp;quot;));
&lt;br&gt;&lt;br&gt;int main(int argc, char *argv[]){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;SistemaRTEST4Cilindres *sistema=NULL;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;PropertyConfigurator::configure(&amp;quot;/etc/rtai/log/log4cxx.properties&amp;quot;);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;LOG4CXX_FATAL(logger, '\n');
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;LOG4CXX_INFO(logger, &amp;quot;Programa main(): Cargamos el sistema&amp;quot;);
&lt;br&gt;&lt;br&gt;....
&lt;br&gt;&lt;br&gt;&lt;br&gt;/etc/rtai/log/log4cxx.properties
&lt;br&gt;&lt;br&gt;# Sample ResourceBundle properties file
&lt;br&gt;log4j.rootLogger=INFO, R
&lt;br&gt;&lt;br&gt;log4j.appender.R=org.apache.log4j.RollingFileAppender
&lt;br&gt;log4j.appender.R.File=/var/log/rtaid.log
&lt;br&gt;&lt;br&gt;log4j.appender.R.MaxFileSize=200KB
&lt;br&gt;log4j.appender.R.MaxBackupIndex=10
&lt;br&gt;&lt;br&gt;log4j.appender.R.layout=org.apache.log4j.PatternLayout
&lt;br&gt;log4j.appender.R.layout.ConversionPattern=%d [%t] %-3p (%F:%L) - %m%n
&lt;br&gt;&lt;br&gt;log4j.logger.Cicle=WARN
&lt;br&gt;log4j.logger.DadesFase=WARN
&lt;br&gt;log4j.logger.Fase=WARN
&lt;br&gt;log4j.logger.Modul=WARN
&lt;br&gt;log4j.logger.Sistema=WARN
&lt;br&gt;#log4j.logger.Sistema.RTEST=WARN
&lt;br&gt;log4j.logger.Transicions=WARN
&lt;br&gt;#log4j.logger.ServidorDades=WARN
&lt;br&gt;&lt;br&gt;&lt;br&gt;My host OS is Debian, someone have any idea??
&lt;br&gt;&lt;br&gt;Thank you.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Carlos Jiménez
&lt;br&gt;&lt;br&gt;ENCOPIM S.L.
&lt;br&gt;C/. del Parc 5 (nau 13), P.I. Els Pinetons
&lt;br&gt;E-08291 RIPOLLET (Barcelona)
&lt;br&gt;Tel: (+34) 935 94 23 47
&lt;br&gt;Fax: (+34) 935 94 64 15
&lt;br&gt;&lt;br&gt;==========================================================
&lt;br&gt;La información contenida en la presente transmisión es confidencial y su
&lt;br&gt;uso únicamente está permitido a su(s) destinatario(s). Si Ud. no es la
&lt;br&gt;persona destinataria de la presente transmisión, rogamos nos lo
&lt;br&gt;comunique de manera inmediata por teléfono (+34 935 942 347) y destruya
&lt;br&gt;cualquier copia de la misma (tanto digitales como en papel).
&lt;br&gt;&lt;br&gt;The information contained in this transmission is confidential and is
&lt;br&gt;intended only for the use of the addressee(s). If you are not the
&lt;br&gt;designated recipient of this transmission, please advise us immediately
&lt;br&gt;by telephone (+34 935 942 347) and destroy any copies (digital and
&lt;br&gt;paper).
&lt;br&gt;==========================================================
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problems-executing-application-with-log4cxx-tp26494807p26494807.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26402651</id>
	<title>Re: LOG4CXX_DECODE_CHAR Crash on windows</title>
	<published>2009-11-17T21:12:15Z</published>
	<updated>2009-11-17T21:12:15Z</updated>
	<author>
		<name>Zhou Tao</name>
	</author>
	<content type="html">Thanks Curt,&lt;br&gt;&lt;br&gt;My comments in line.&lt;br&gt;&lt;i&gt;&lt;br&gt;&lt;/i&gt;&lt;div class=&quot;gmail_quote&quot;&gt;&lt;i&gt;2009/11/18 Curt Arnold &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26402651&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;carnold@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;/i&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;i&gt;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.&lt;/i&gt;&lt;br&gt;
&lt;/blockquote&gt;&lt;div&gt; &lt;br&gt;Tom&amp;gt;&amp;gt; Yes, it&amp;#39;s the problem.&lt;br&gt;&lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;br&gt;
&lt;i&gt;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.&lt;/i&gt;&lt;br&gt;
&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;Tom&amp;gt;&amp;gt; Do you mean to build the log4cxx source into my DLL? &lt;br&gt;My context is to build the log4cxx to a DLL and the log4cxx DLL would be called in my DLL( build with /MT option). Mostly I cannot combine the log4cxx code with my DLL code together. I maybe misunderstand you about your way to handle the issue.&lt;br&gt;
&lt;br&gt;Regards,&lt;br&gt;Tom&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt; &lt;/div&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Thanks and Regards,&lt;br&gt;Tom&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/LOG4CXX_DECODE_CHAR-Crash-on-windows-tp26334048p26402651.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26401946</id>
	<title>Re: LOG4CXX_DECODE_CHAR Crash on windows</title>
	<published>2009-11-17T19:29:15Z</published>
	<updated>2009-11-17T19:29:15Z</updated>
	<author>
		<name>Curt Arnold-3</name>
	</author>
	<content type="html">Mismatching run-time libraries is a easy way to manufacture a crash. &amp;nbsp; &amp;nbsp;
&lt;br&gt;Basically any time one DLL tries to deallocate some resource allocated &amp;nbsp;
&lt;br&gt;by a DLL using a different run time library (and that includes two &amp;nbsp;
&lt;br&gt;DLLs that each use /MT since they have the own instances of the run- 
&lt;br&gt;time library), bad things will happen.
&lt;br&gt;&lt;br&gt;To build a DLL using the /MT run-time library and log4cxx, add the &amp;nbsp;
&lt;br&gt;log4cxx source into your project and set the LOG4CXX_STATIC &amp;nbsp;
&lt;br&gt;environment variable. &amp;nbsp;If you try linking with a static library, you &amp;nbsp;
&lt;br&gt;will only get the classes that you call directly. &amp;nbsp;The ones that are &amp;nbsp;
&lt;br&gt;expected to be present when the configuration is read will not have &amp;nbsp;
&lt;br&gt;been linked into your DLL.
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/LOG4CXX_DECODE_CHAR-Crash-on-windows-tp26334048p26401946.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26386183</id>
	<title>Re: LOG4CXX_DECODE_CHAR Crash on windows</title>
	<published>2009-11-17T00:39:12Z</published>
	<updated>2009-11-17T00:39:12Z</updated>
	<author>
		<name>Zhou Tao</name>
	</author>
	<content type="html">&lt;div&gt;I take a look at the problem. The issue is caused by using mixed MT/MD option in one process. My DLL is using MT option and log4cxx is using MD, so they are using different copy of CRT lib. I call the LOG4CXX_DECODE_CHAR macro within my DLL to create a LogString variable then get the fail. ( note: in debug mode on windows32).&lt;/div&gt;

&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Macro:&lt;/div&gt;
&lt;div&gt;#define LOG4CXX_DECODE_CHAR(var, src) \&lt;/div&gt;
&lt;div&gt;log4cxx::LogString var; \&lt;/div&gt;
&lt;div&gt;log4cxx::helpers::Transcoder::decode(src, var)&lt;font size=&quot;4&quot;&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;I check the Transcoder::decode(const std::string&amp;amp; src, LogString&amp;amp; dst) function,&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;dst.reserve(dst.size()+src.size());&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;The above statement maybe allocate new bytes in the CRT heap used by log4cxx, but the dst variable would be freed in my DLL if I use the macro. The two DLLs have two different copy of CRT libs. So cause a heap corruption error.&lt;/div&gt;

&lt;div&gt; &lt;/div&gt;
&lt;div&gt;I understand if all DLLs are build with MD option, then OK.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;So my question is,&lt;/div&gt;
&lt;div&gt;1. the macro LOG4CXX_DECODE_CHAR(var, src) is only used for log4cxx DLL internally?&lt;/div&gt;
&lt;div&gt;2. Why not to only fill the memory in decode function, but not to change the size of the passed-in CRT objects? It&amp;#39;s a rule I often use. I mean to change the size of dst object some where outside of the decode function.&lt;/div&gt;

&lt;div&gt;3. Is it possible to create other ways to generate a logstring based on the std::string content?&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Thanks,&lt;/div&gt;
&lt;div&gt;Tom&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div class=&quot;gmail_quote&quot;&gt;2009/11/13 Zhou Tao &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26386183&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;zhoutao109@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid&quot;&gt;Hi all,&lt;br&gt;&lt;br&gt;I am using log4cxx on win32 platform and  build the log4cxx with MT option( Runtime Library) within MS visual Studio 2005. The project default setting is MD. All APR, APR-UTIL and LOG4CXX projects are set to be MT mode.&lt;br&gt;
&lt;br&gt;After the build, I get a crash in the LOG4CXX_DECODE_CHAR macro. The code is very simple, looks like the below,&lt;br&gt;&lt;br&gt;void testFun()&lt;br&gt;{&lt;br&gt;std::string src = &amp;quot;log4cxx-string-testing&amp;quot;;&lt;br&gt;LOG4CXX_DECODE_CHAR(dest, src);&lt;br&gt;
}&lt;br&gt;&lt;br&gt;The crash happens when leave the function when trying to delete the allocated memory. If the length of the src string is less than 7, it works. &lt;br&gt;&lt;br&gt;Is this a problem?&lt;br clear=&quot;all&quot;&gt;&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;
-- &lt;br&gt;Thanks and Regards,&lt;br&gt;Tom&lt;br&gt;&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Thanks and Regards,&lt;br&gt;Tom&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/LOG4CXX_DECODE_CHAR-Crash-on-windows-tp26334048p26386183.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26366576</id>
	<title>Re: Compilation Error -Log4cxx 0.10.0 on AS3 Redhat Linux (gcc2.96)]</title>
	<published>2009-11-15T19:56:15Z</published>
	<updated>2009-11-15T19:56:15Z</updated>
	<author>
		<name>Curt Arnold-3</name>
	</author>
	<content type="html">When I checked the archives, it appears that you have reported this &amp;nbsp;
&lt;br&gt;before. &amp;nbsp;From log4cxx-user in July 12, 2008 I replied:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; gcc 2.96 was a prerelease version of gcc 3.x and has an incomplete &amp;nbsp;
&lt;br&gt;&amp;gt; implementation of the C++ Standard Template Library (see &lt;a href=&quot;http://gcc.gnu.org/gcc-2.96.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gcc.gnu.org/gcc-2.96.html&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; ) . I have been able to get messagebuffer.h to compile by forward &amp;nbsp;
&lt;br&gt;&amp;gt; declaring std::ios_base and replacing std::basic_ostream&amp;lt;char&amp;gt; with &amp;nbsp;
&lt;br&gt;&amp;gt; std::ostream and similar changes, but there are also compilation &amp;nbsp;
&lt;br&gt;&amp;gt; failures in cachedateformat.cpp and properties.h and there may be &amp;nbsp;
&lt;br&gt;&amp;gt; others. I do not intend to work around gcc 2.96's limitation.
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;gcc 2.96 is an odd-ball compiler disavowed by the gcc team. &amp;nbsp;I'm not &amp;nbsp;
&lt;br&gt;saying that I'd be opposed to integrating patches to work around its &amp;nbsp;
&lt;br&gt;limitations as long as it doesn't compromise current and/or standard &amp;nbsp;
&lt;br&gt;compliant compilers. &amp;nbsp;However, there is nothing that motivates me to &amp;nbsp;
&lt;br&gt;work through the issues with this compiler for you.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Compilation-Error--Log4cxx-0.10.0-on-AS3-Redhat-Linux-%28gcc2.96%29--tp26334499p26366576.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26334499</id>
	<title>Compilation Error -Log4cxx 0.10.0 on AS3 Redhat Linux (gcc2.96)]</title>
	<published>2009-11-13T02:30:15Z</published>
	<updated>2009-11-13T02:30:15Z</updated>
	<author>
		<name>Srk Raju</name>
	</author>
	<content type="html">&lt;br&gt;I am able to compile apr, aprutil and successfully generated the libraries.&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;
When I try to make log4cxx libraries, getting the following error.&lt;br&gt;
&lt;br&gt;
     Errors:&lt;br&gt;
1. src/main/include/log4cxx/helpers/messagebuffer.h:158: `::basic_ostream&amp;#39;&lt;br&gt;
undeclared (first use here)&lt;br&gt;
2. src/main/include/log4cxx/helpers/messagebuffer.h:194:&lt;br&gt;
`CharMessageBuffer&amp;#39; was not declared in this scope&lt;br&gt;
3. src/main/include/log4cxx/helpers/messagebuffer.h:194: `os&amp;#39; was not&lt;br&gt;
declared in this scope&lt;br&gt;
4. src/main/include/log4cxx/helpers/messagebuffer.h:194:&lt;br&gt;
`log4cxx::helpers::operator&amp;lt;&amp;lt; (...)&amp;#39; must have an argument of class or&lt;br&gt;
enumerated type&lt;br&gt;
5. /src/main/include/log4cxx/helpers/messagebuffer.h:195: `val&amp;#39; undeclared&lt;br&gt;
6. /src/main/include/log4cxx/logger.h:44: `LoggerRepository&amp;#39; was not&lt;br&gt;
declared in this scope&lt;br&gt;
&lt;br&gt;
Any suggestions please.&lt;br&gt;
&lt;br&gt;
Regards&lt;br&gt;
SrkRaju&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
______________________________________________________________________________&lt;br&gt;
&lt;br&gt;
DISCLAIMER&lt;br&gt;
&lt;br&gt;
The information contained in this e-mail message and/or attachments to it may&lt;br&gt;
contain confidential or privileged information. If you are not the intended&lt;br&gt;
recipient, any dissemination, use, review, distribution, printing or copying&lt;br&gt;
of the information contained in this e-mail message and/or attachments to it&lt;br&gt;
are strictly prohibited. If you have received this communication in error,&lt;br&gt;
please notify us by reply e-mail or directly to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26334499&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;netsupport@...&lt;/a&gt; or&lt;br&gt;
telephone and immediately and permanently delete the message and any&lt;br&gt;
attachments. Thank you.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
______________________________________________________________________________&lt;br&gt;
&lt;br&gt;
This email has been scrubbed for your protection by SecureMX.&lt;br&gt;
For more information visit &lt;a href=&quot;http://securemx.in&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://securemx.in&lt;/a&gt;&lt;br&gt;
______________________________________________________________________________&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Thanks&amp;amp; Regards,&lt;br&gt;S. Ramakrishna Raju&lt;br&gt;phone: 919441432458&lt;br&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Compilation-Error--Log4cxx-0.10.0-on-AS3-Redhat-Linux-%28gcc2.96%29--tp26334499p26334499.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26334048</id>
	<title>LOG4CXX_DECODE_CHAR Crash on windows</title>
	<published>2009-11-13T01:56:47Z</published>
	<updated>2009-11-13T01:56:47Z</updated>
	<author>
		<name>Zhou Tao</name>
	</author>
	<content type="html">Hi all,&lt;br&gt;&lt;br&gt;I am using log4cxx on win32 platform and  build the log4cxx with MT option( Runtime Library) within MS visual Studio 2005. The project default setting is MD. All APR, APR-UTIL and LOG4CXX projects are set to be MT mode.&lt;br&gt;
&lt;br&gt;After the build, I get a crash in the LOG4CXX_DECODE_CHAR macro. The code is very simple, looks like the below,&lt;br&gt;&lt;br&gt;void testFun()&lt;br&gt;{&lt;br&gt;std::string src = &amp;quot;log4cxx-string-testing&amp;quot;;&lt;br&gt;LOG4CXX_DECODE_CHAR(dest, src);&lt;br&gt;
}&lt;br&gt;&lt;br&gt;The crash happens when leave the function when trying to delete the allocated memory. If the length of the src string is less than 7, it works. &lt;br&gt;&lt;br&gt;Is this a problem?&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Thanks and Regards,&lt;br&gt;
Tom&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/LOG4CXX_DECODE_CHAR-Crash-on-windows-tp26334048p26334048.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26331349</id>
	<title>Re: problem with install log4cxx</title>
	<published>2009-11-12T20:40:17Z</published>
	<updated>2009-11-12T20:40:17Z</updated>
	<author>
		<name>Curt Arnold-3</name>
	</author>
	<content type="html">&lt;br&gt;On Nov 10, 2009, at 4:52 AM, Bajramovic, Ervin wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi everybody
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I want to build log4cxx
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I used the following configuration:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ./autogen.sh
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ./configure CFLAGS=&amp;quot;-O2 -s -mms-bitfields -march=i686&amp;quot; CXXFLAGS=&amp;quot;-O2 &amp;nbsp;
&lt;br&gt;&amp;gt; -s -mms-bitfields -march=i686&amp;quot; --with-apr=/usr/local --with-apr- 
&lt;br&gt;&amp;gt; util=/usr/local
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; make &amp;&amp; make install
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; And i get this error:
&lt;/div&gt;...
&lt;br&gt;&amp;gt; test -z &amp;quot;/usr/local/include/log4cxx/private&amp;quot; || /bin/mkdir -p &amp;quot;/usr/ 
&lt;br&gt;&amp;gt; local/include/log4cxx/private&amp;quot;
&lt;br&gt;&amp;gt; /bin/install -c -m 644 ../../../../../src/main/include/log4cxx/ 
&lt;br&gt;&amp;gt; private/log4cxx_private.h log4cxx_private.h '/usr/local/include/ 
&lt;br&gt;&amp;gt; log4cxx/private'
&lt;br&gt;&amp;gt; /bin/install: will not overwrite just-created `/usr/local/include/ 
&lt;br&gt;&amp;gt; log4cxx/private/log4cxx_private.h' with `log4cxx_private.h'
&lt;br&gt;&amp;gt; make[6]: *** [install-privateincHEADERS] Error 1
&lt;br&gt;&lt;br&gt;&lt;br&gt;Since you are failing to write to /usr/local, I'm guessing it is a &amp;nbsp;
&lt;br&gt;permissions issue and you need to do &amp;quot;sudo make install&amp;quot; or the &amp;nbsp;
&lt;br&gt;equivalent.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/problem-with-install-log4cxx-tp26281510p26331349.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26281510</id>
	<title>problem with install log4cxx</title>
	<published>2009-11-10T02:52:12Z</published>
	<updated>2009-11-10T02:52:12Z</updated>
	<author>
		<name>Bajramovic, Ervin</name>
	</author>
	<content type="html">&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=&quot;Generator&quot; content=&quot;Microsoft Exchange Server&quot;&gt;
&lt;!-- converted from rtf --&gt;

&lt;/head&gt;
&lt;body&gt;
&lt;font face=&quot;Arial, sans-serif&quot; size=&quot;2&quot;&gt;
&lt;div&gt;Hi everybody&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;I want to build log4cxx&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;I used the following configuration:&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;./autogen.sh&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;./configure CFLAGS=&amp;quot;-O2 -s -mms-bitfields -march=i686&amp;quot; CXXFLAGS=&amp;quot;-O2 -s -mms-bitfields -march=i686&amp;quot; --with-apr=/usr/local --with-apr-util=/usr/local&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;make &amp;amp;&amp;amp; make install&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;And i get this error:&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Making install in db&lt;/div&gt;
&lt;div&gt;make[5]: Entering directory `/home/lab409/log4cxx/src/main/include/log4cxx/db'&lt;/div&gt;
&lt;div&gt;make[6]: Entering directory `/home/lab409/log4cxx/src/main/include/log4cxx/db'&lt;/div&gt;
&lt;div&gt;make[6]: Nothing to be done for `install-exec-am'.&lt;/div&gt;
&lt;div&gt;test -z &amp;quot;/usr/local/include/log4cxx/db&amp;quot; || /bin/mkdir -p &amp;quot;/usr/local/include/log4cxx/db&amp;quot;&lt;/div&gt;
&lt;div&gt; /bin/install -c -m 644 ../../../../../src/main/include/log4cxx/db/odbcappender.h '/usr/local/include/log4cxx/db'&lt;/div&gt;
&lt;div&gt;make[6]: Leaving directory `/home/lab409/log4cxx/src/main/include/log4cxx/db'&lt;/div&gt;
&lt;div&gt;make[5]: Leaving directory `/home/lab409/log4cxx/src/main/include/log4cxx/db'&lt;/div&gt;
&lt;div&gt;Making install in private&lt;/div&gt;
&lt;div&gt;make[5]: Entering directory `/home/lab409/log4cxx/src/main/include/log4cxx/private'&lt;/div&gt;
&lt;div&gt;make[6]: Entering directory `/home/lab409/log4cxx/src/main/include/log4cxx/private'&lt;/div&gt;
&lt;div&gt;make[6]: Nothing to be done for `install-exec-am'.&lt;/div&gt;
&lt;div&gt;test -z &amp;quot;/usr/local/include/log4cxx/private&amp;quot; || /bin/mkdir -p &amp;quot;/usr/local/include/log4cxx/private&amp;quot;&lt;/div&gt;
&lt;div&gt; /bin/install -c -m 644 ../../../../../src/main/include/log4cxx/private/log4cxx_private.h log4cxx_private.h '/usr/local/include/log4cxx/private'&lt;/div&gt;
&lt;div&gt;/bin/install: will not overwrite just-created `/usr/local/include/log4cxx/private/log4cxx_private.h' with `log4cxx_private.h'&lt;/div&gt;
&lt;div&gt;make[6]: *** [install-privateincHEADERS] Error 1&lt;/div&gt;
&lt;div&gt;make[6]: Leaving directory `/home/lab409/log4cxx/src/main/include/log4cxx/private'&lt;/div&gt;
&lt;div&gt;make[5]: *** [install-am] Error 2&lt;/div&gt;
&lt;div&gt;make[5]: Leaving directory `/home/lab409/log4cxx/src/main/include/log4cxx/private'&lt;/div&gt;
&lt;div&gt;make[4]: *** [install-recursive] Error 1&lt;/div&gt;
&lt;div&gt;make[4]: Leaving directory `/home/lab409/log4cxx/src/main/include/log4cxx'&lt;/div&gt;
&lt;div&gt;make[3]: *** [install-recursive] Error 1&lt;/div&gt;
&lt;div&gt;make[3]: Leaving directory `/home/lab409/log4cxx/src/main/include'&lt;/div&gt;
&lt;div&gt;make[2]: *** [install-recursive] Error 1&lt;/div&gt;
&lt;div&gt;make[2]: Leaving directory `/home/lab409/log4cxx/src/main'&lt;/div&gt;
&lt;div&gt;make[1]: *** [install-recursive] Error 1&lt;/div&gt;
&lt;div&gt;make[1]: Leaving directory `/home/lab409/log4cxx/src'&lt;/div&gt;
&lt;div&gt;make: *** [install-recursive] Error 1&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;I tested it with the packe from the apache download mirror Log4cxx-0.10.0&lt;/div&gt;
&lt;div&gt;and with de svn source from svn.apache.org/repos/asf/logging/log4cxx/trunk/&lt;/div&gt;
&lt;div&gt;Asf - Revision 834383 and got the same error.&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Can enybody tell mi how to fix it&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Ervin Bajramovic&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;3&quot;&gt;&lt;br&gt;

&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;3&quot; color=&quot;#C0C0C0&quot;&gt;&lt;u&gt;&amp;nbsp; ________________________________ &amp;nbsp;&lt;/u&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face=&quot;Arial, sans-serif&quot; size=&quot;1&quot; color=&quot;#808080&quot;&gt;DISCLAIMER :&lt;br&gt;

This e-mail is for the intended recipient only&lt;br&gt;

If you have received it by mistake please let us know by reply and then delete it from your system; access, disclosure, copying, distribution or reliance on any of it by anyone else is prohibited.&lt;br&gt;

If you as intended recipient have received this e-mail incorrectly, please notify the sender (via e-mail) immediately.&lt;br&gt;

&lt;/font&gt;&lt;/div&gt;
&lt;/font&gt;
&lt;/body&gt;
&lt;/html&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/problem-with-install-log4cxx-tp26281510p26281510.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26259752</id>
	<title>Re: Memory Leak with MFC</title>
	<published>2009-11-08T16:48:59Z</published>
	<updated>2009-11-08T16:48:59Z</updated>
	<author>
		<name>&quot;山脇健一(Yamawaki Kenichi)&quot;</name>
	</author>
	<content type="html">thanks Patrick, Cory,
&lt;br&gt;&lt;br&gt;I've understood that these are not memory leak.
&lt;br&gt;They are side effects of ordering of destruction.
&lt;br&gt;and I ran my sample program 3 times.
&lt;br&gt;the allocation numbers are consistent.
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Patrick is right. Run it a few times and see if the allocation numbers
&lt;br&gt;&amp;gt; change (124, 1151, and 1152). If you can get it to repeat consistently,
&lt;br&gt;&amp;gt; set a breakpoint at those allocations to see what it is that's leaking.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; You could also rebuild using the debug version of new. That way, you
&lt;br&gt;&amp;gt; will get file and line numbers in the memory dumps.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -cory
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Griffiths, Patrick wrote:
&lt;br&gt;&amp;gt;&amp;gt; This doesn't show that the leak is or is not log4cxx.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Keep in mind that log4cxx uses static singleton objects. It's quite possible that what you are seeing is a simply a side effect caused by the ordering of the destruction of static objects.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt;&amp;gt; From: &amp;quot;山脇健一(Yamawaki Kenichi)&amp;quot; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259752&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;k-yamawaki@...&lt;/a&gt;]
&lt;br&gt;&amp;gt;&amp;gt; Sent: Wednesday, November 04, 2009 5:23 PM
&lt;br&gt;&amp;gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259752&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;log4cxx-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; Subject: Memory Leak with MFC
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Hi Exparts,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I use the log4cxx-0.10.0.
&lt;br&gt;&amp;gt;&amp;gt; I made below programs with MFC. Then I have faced a certain memory leak.
&lt;br&gt;&amp;gt;&amp;gt; Please teach the method of settlement.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; // leak version (with MFC)
&lt;br&gt;&amp;gt;&amp;gt; BOOL CLogTestDlg::OnInitDialog()
&lt;br&gt;&amp;gt;&amp;gt; {
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CDialog::OnInitDialog();
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LoggerPtr &amp;nbsp; &amp;nbsp; &amp;nbsp; logger = Logger::getLogger( &amp;quot;test&amp;quot; );
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return TRUE;
&lt;br&gt;&amp;gt;&amp;gt; }
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; -----------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; Detected memory leaks!
&lt;br&gt;&amp;gt;&amp;gt; Dumping objects -&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; {1152} normal block at 0x01B08818, 56 bytes long.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;Data: &amp;lt;0 n 0 n 0 n &amp;nbsp; &amp;nbsp; &amp;gt; 30 F1 6E 02 30 F1 6E 02 30 F1 6E 02 00 00 00 00
&lt;br&gt;&amp;gt;&amp;gt; {1151} normal block at 0x01B08768, 116 bytes long.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;Data: &amp;lt;Lb &amp;nbsp;db &amp;nbsp; -n &amp;nbsp; &amp;nbsp; &amp;gt; 4C 62 1D 10 64 62 1D 10 8C 2D 6E 02 00 00 00 00
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; -----Omission ------
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; {124} normal block at 0x01B02218, 52 bytes long.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;Data: &amp;lt; P &amp;nbsp; l &amp;nbsp;P &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt; C8 50 B0 01 90 6C B0 01 50 BA B0 01 CD CD CD CD
&lt;br&gt;&amp;gt;&amp;gt; -----------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; // A program without MFC doesn't leak memory.
&lt;br&gt;&amp;gt;&amp;gt; int _tmain(int argc, _TCHAR* argv[])
&lt;br&gt;&amp;gt;&amp;gt; {
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LoggerPtr &amp;nbsp; &amp;nbsp; &amp;nbsp; logger &amp;nbsp;= Logger::getLogger(&amp;quot;test&amp;quot;);
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return 0;
&lt;br&gt;&amp;gt;&amp;gt; }
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; thanks,
&lt;br&gt;&amp;gt;&amp;gt; Kenichi
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; This e-mail contains privileged and confidential information intended for the use of the addressees named above. If you are not the intended recipient of this e-mail, you are hereby notified that you must not disseminate, copy or take any action in respect of any information contained in it. If you have received this e-mail in error, please notify the sender immediately by e-mail and immediately destroy this e-mail and its attachments.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Kenichi Yamawaki
&lt;br&gt;carina system co.,ltd.
&lt;br&gt;E-mail:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259752&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;k-yamawaki@...&lt;/a&gt;
&lt;br&gt;TEL +81-78-954-5231
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Memory-Leak-with-MFC-tp26207187p26259752.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26216888</id>
	<title>Re: Memory Leak with MFC</title>
	<published>2009-11-05T07:32:56Z</published>
	<updated>2009-11-05T07:32:56Z</updated>
	<author>
		<name>Cory Riddell-3</name>
	</author>
	<content type="html">Patrick is right. Run it a few times and see if the allocation numbers
&lt;br&gt;change (124, 1151, and 1152). If you can get it to repeat consistently,
&lt;br&gt;set a breakpoint at those allocations to see what it is that's leaking.
&lt;br&gt;&lt;br&gt;You could also rebuild using the debug version of new. That way, you
&lt;br&gt;will get file and line numbers in the memory dumps.
&lt;br&gt;&lt;br&gt;-cory
&lt;br&gt;&lt;br&gt;&lt;br&gt;Griffiths, Patrick wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; This doesn't show that the leak is or is not log4cxx.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Keep in mind that log4cxx uses static singleton objects. It's quite possible that what you are seeing is a simply a side effect caused by the ordering of the destruction of static objects.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: &amp;quot;山脇健一(Yamawaki Kenichi)&amp;quot; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216888&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;k-yamawaki@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Wednesday, November 04, 2009 5:23 PM
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216888&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;log4cxx-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: Memory Leak with MFC
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi Exparts,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I use the log4cxx-0.10.0.
&lt;br&gt;&amp;gt; I made below programs with MFC. Then I have faced a certain memory leak.
&lt;br&gt;&amp;gt; Please teach the method of settlement.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; // leak version (with MFC)
&lt;br&gt;&amp;gt; BOOL CLogTestDlg::OnInitDialog()
&lt;br&gt;&amp;gt; {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CDialog::OnInitDialog();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LoggerPtr &amp;nbsp; &amp;nbsp; &amp;nbsp; logger = Logger::getLogger( &amp;quot;test&amp;quot; );
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return TRUE;
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -----------------------------------------------------------------
&lt;br&gt;&amp;gt; Detected memory leaks!
&lt;br&gt;&amp;gt; Dumping objects -&amp;gt;
&lt;br&gt;&amp;gt; {1152} normal block at 0x01B08818, 56 bytes long.
&lt;br&gt;&amp;gt; &amp;nbsp;Data: &amp;lt;0 n 0 n 0 n &amp;nbsp; &amp;nbsp; &amp;gt; 30 F1 6E 02 30 F1 6E 02 30 F1 6E 02 00 00 00 00
&lt;br&gt;&amp;gt; {1151} normal block at 0x01B08768, 116 bytes long.
&lt;br&gt;&amp;gt; &amp;nbsp;Data: &amp;lt;Lb &amp;nbsp;db &amp;nbsp; -n &amp;nbsp; &amp;nbsp; &amp;gt; 4C 62 1D 10 64 62 1D 10 8C 2D 6E 02 00 00 00 00
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; -----Omission ------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; {124} normal block at 0x01B02218, 52 bytes long.
&lt;br&gt;&amp;gt; &amp;nbsp;Data: &amp;lt; P &amp;nbsp; l &amp;nbsp;P &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt; C8 50 B0 01 90 6C B0 01 50 BA B0 01 CD CD CD CD
&lt;br&gt;&amp;gt; -----------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; // A program without MFC doesn't leak memory.
&lt;br&gt;&amp;gt; int _tmain(int argc, _TCHAR* argv[])
&lt;br&gt;&amp;gt; {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LoggerPtr &amp;nbsp; &amp;nbsp; &amp;nbsp; logger &amp;nbsp;= Logger::getLogger(&amp;quot;test&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return 0;
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; thanks,
&lt;br&gt;&amp;gt; Kenichi
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This e-mail contains privileged and confidential information intended for the use of the addressees named above. If you are not the intended recipient of this e-mail, you are hereby notified that you must not disseminate, copy or take any action in respect of any information contained in it. If you have received this e-mail in error, please notify the sender immediately by e-mail and immediately destroy this e-mail and its attachments.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Memory-Leak-with-MFC-tp26207187p26216888.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26215901</id>
	<title>RE: Memory Leak with MFC</title>
	<published>2009-11-05T06:39:40Z</published>
	<updated>2009-11-05T06:39:40Z</updated>
	<author>
		<name>Griffiths, Patrick</name>
	</author>
	<content type="html">This doesn't show that the leak is or is not log4cxx.
&lt;br&gt;&lt;br&gt;Keep in mind that log4cxx uses static singleton objects. It's quite possible that what you are seeing is a simply a side effect caused by the ordering of the destruction of static objects.
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: &amp;quot;山脇健一(Yamawaki Kenichi)&amp;quot; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26215901&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;k-yamawaki@...&lt;/a&gt;]
&lt;br&gt;Sent: Wednesday, November 04, 2009 5:23 PM
&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26215901&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;log4cxx-user@...&lt;/a&gt;
&lt;br&gt;Subject: Memory Leak with MFC
&lt;br&gt;&lt;br&gt;Hi Exparts,
&lt;br&gt;&lt;br&gt;I use the log4cxx-0.10.0.
&lt;br&gt;I made below programs with MFC. Then I have faced a certain memory leak.
&lt;br&gt;Please teach the method of settlement.
&lt;br&gt;&lt;br&gt;// leak version (with MFC)
&lt;br&gt;BOOL CLogTestDlg::OnInitDialog()
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CDialog::OnInitDialog();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LoggerPtr &amp;nbsp; &amp;nbsp; &amp;nbsp; logger = Logger::getLogger( &amp;quot;test&amp;quot; );
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return TRUE;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;-----------------------------------------------------------------
&lt;br&gt;Detected memory leaks!
&lt;br&gt;Dumping objects -&amp;gt;
&lt;br&gt;{1152} normal block at 0x01B08818, 56 bytes long.
&lt;br&gt;&amp;nbsp;Data: &amp;lt;0 n 0 n 0 n &amp;nbsp; &amp;nbsp; &amp;gt; 30 F1 6E 02 30 F1 6E 02 30 F1 6E 02 00 00 00 00
&lt;br&gt;{1151} normal block at 0x01B08768, 116 bytes long.
&lt;br&gt;&amp;nbsp;Data: &amp;lt;Lb &amp;nbsp;db &amp;nbsp; -n &amp;nbsp; &amp;nbsp; &amp;gt; 4C 62 1D 10 64 62 1D 10 8C 2D 6E 02 00 00 00 00
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; -----Omission ------
&lt;br&gt;&lt;br&gt;{124} normal block at 0x01B02218, 52 bytes long.
&lt;br&gt;&amp;nbsp;Data: &amp;lt; P &amp;nbsp; l &amp;nbsp;P &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt; C8 50 B0 01 90 6C B0 01 50 BA B0 01 CD CD CD CD
&lt;br&gt;-----------------------------------------------------------------
&lt;br&gt;&lt;br&gt;// A program without MFC doesn't leak memory.
&lt;br&gt;int _tmain(int argc, _TCHAR* argv[])
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LoggerPtr &amp;nbsp; &amp;nbsp; &amp;nbsp; logger &amp;nbsp;= Logger::getLogger(&amp;quot;test&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return 0;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;thanks,
&lt;br&gt;Kenichi
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;This e-mail contains privileged and confidential information intended for the use of the addressees named above. If you are not the intended recipient of this e-mail, you are hereby notified that you must not disseminate, copy or take any action in respect of any information contained in it. If you have received this e-mail in error, please notify the sender immediately by e-mail and immediately destroy this e-mail and its attachments.
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Memory-Leak-with-MFC-tp26207187p26215901.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26207187</id>
	<title>Memory Leak with MFC</title>
	<published>2009-11-04T16:23:02Z</published>
	<updated>2009-11-04T16:23:02Z</updated>
	<author>
		<name>&quot;山脇健一(Yamawaki Kenichi)&quot;</name>
	</author>
	<content type="html">Hi Exparts,
&lt;br&gt;&lt;br&gt;I use the log4cxx-0.10.0.
&lt;br&gt;I made below programs with MFC. Then I have faced a certain memory leak.
&lt;br&gt;Please teach the method of settlement.
&lt;br&gt;&lt;br&gt;// leak version (with MFC)
&lt;br&gt;BOOL CLogTestDlg::OnInitDialog()
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CDialog::OnInitDialog();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LoggerPtr	logger = Logger::getLogger( &amp;quot;test&amp;quot; );
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return TRUE;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;-----------------------------------------------------------------
&lt;br&gt;Detected memory leaks!
&lt;br&gt;Dumping objects -&amp;gt;
&lt;br&gt;{1152} normal block at 0x01B08818, 56 bytes long.
&lt;br&gt;&amp;nbsp;Data: &amp;lt;0 n 0 n 0 n &amp;nbsp; &amp;nbsp; &amp;gt; 30 F1 6E 02 30 F1 6E 02 30 F1 6E 02 00 00 00 00
&lt;br&gt;{1151} normal block at 0x01B08768, 116 bytes long.
&lt;br&gt;&amp;nbsp;Data: &amp;lt;Lb &amp;nbsp;db &amp;nbsp; -n &amp;nbsp; &amp;nbsp; &amp;gt; 4C 62 1D 10 64 62 1D 10 8C 2D 6E 02 00 00 00 00
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; -----Omission ------
&lt;br&gt;&lt;br&gt;{124} normal block at 0x01B02218, 52 bytes long.
&lt;br&gt;&amp;nbsp;Data: &amp;lt; P &amp;nbsp; l &amp;nbsp;P &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt; C8 50 B0 01 90 6C B0 01 50 BA B0 01 CD CD CD CD
&lt;br&gt;-----------------------------------------------------------------
&lt;br&gt;&lt;br&gt;// A program without MFC doesn't leak memory.
&lt;br&gt;int _tmain(int argc, _TCHAR* argv[])
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LoggerPtr	logger	= Logger::getLogger(&amp;quot;test&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return 0;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;thanks,
&lt;br&gt;Kenichi
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Memory-Leak-with-MFC-tp26207187p26207187.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26125512</id>
	<title>ant build options not working on Windows? (unichar, wchar_t, etc)</title>
	<published>2009-10-29T23:14:29Z</published>
	<updated>2009-10-29T23:14:29Z</updated>
	<author>
		<name>SamuelG</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I'm tangling with log4cxx and going under...
&lt;br&gt;&lt;br&gt;I'm on Windows XP and using MSVC9 and used the following:
&lt;br&gt;- apache-log4cxx-0.10.0.tar.gz
&lt;br&gt;- apr-util-1.2.12.tar.gz &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (the latest didn't work,
&lt;br&gt;can't remember the reason)
&lt;br&gt;- apr-1.2.12.tar.gz &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(same again, latest
&lt;br&gt;version didn't work)
&lt;br&gt;- cpptasks-1.0b5 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (and built cpptasks.jar using ant)
&lt;br&gt;- ant-contrib-1.0b5-bin &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(came with ant-contrib-1.0b3.jar)
&lt;br&gt;&lt;br&gt;(ant couldn't find tools.jar either. I 'solved' this by copying it
&lt;br&gt;from the jdk/lib int jre/lib too, probably should've fixed paths or
&lt;br&gt;something but ...)
&lt;br&gt;&lt;br&gt;Sorry for the long post. Please pick it apart and just answer what you
&lt;br&gt;can or want. Thanks heaps for any help!
&lt;br&gt;&lt;br&gt;&lt;br&gt;So to begin, &amp;nbsp;I have log4cxx building via ant:
&lt;br&gt;&lt;br&gt;$ant -Dfind=false
&lt;br&gt;&lt;br&gt;The library files are built and passes most but not all tests. I've
&lt;br&gt;used it and it is logging. Fine. Great. Okay...
&lt;br&gt;&lt;br&gt;If I want to modify the build options, do I use the command line args
&lt;br&gt;(-D...) or modify log4cxx.hw? The former doesn't seem to be working
&lt;br&gt;for me. &amp;nbsp;That is, when I modify the build options, say
&lt;br&gt;-Denable-wchar_t=yes, they don't seem to effect the generated
&lt;br&gt;log4cxx.h.
&lt;br&gt;&lt;br&gt;So, if I run:
&lt;br&gt;$ant -Dfind=false -Denable-wchar_t=yes -Denable-unichar=yes
&lt;br&gt;-Dwith-logchar=wchar_t
&lt;br&gt;&lt;br&gt;generates the log4cxx.h as:
&lt;br&gt;#define LOG4CXX_LOGCHAR_IS_UTF8 0
&lt;br&gt;#if LOG4CXX_LOGCHAR_IS_UTF8
&lt;br&gt;#define LOG4CXX_LOGCHAR_IS_WCHAR 0
&lt;br&gt;#else
&lt;br&gt;#define LOG4CXX_LOGCHAR_IS_WCHAR 1
&lt;br&gt;#endif
&lt;br&gt;#define LOG4CXX_LOGCHAR_IS_UNICHAR 0
&lt;br&gt;&lt;br&gt;#define LOG4CXX_CHAR_API 1
&lt;br&gt;#define LOG4CXX_WCHAR_T_API 1
&lt;br&gt;#define LOG4CXX_UNICHAR_API 0
&lt;br&gt;#define LOG4CXX_CFSTRING_API 0
&lt;br&gt;&lt;br&gt;&lt;br&gt;Why isn't LOG4CXX_UNICHAR_API &amp;nbsp;= 1? &amp;nbsp;What isn't
&lt;br&gt;LOG4CXX_LOGCHAR_IS_UNICHAR = 1? Does it not make sense to have both
&lt;br&gt;wchar_t and unichar enabled?
&lt;br&gt;&lt;br&gt;So, if I run:
&lt;br&gt;$ant -Dfind=false -Denable-wchar_t=no -Denable-unichar=yes
&lt;br&gt;-Dwith-logchar=unichar
&lt;br&gt;&lt;br&gt;#define LOG4CXX_LOGCHAR_IS_UTF8 0
&lt;br&gt;#if LOG4CXX_LOGCHAR_IS_UTF8
&lt;br&gt;#define LOG4CXX_LOGCHAR_IS_WCHAR 0
&lt;br&gt;#else
&lt;br&gt;#define LOG4CXX_LOGCHAR_IS_WCHAR 1
&lt;br&gt;#endif
&lt;br&gt;#define LOG4CXX_LOGCHAR_IS_UNICHAR 0
&lt;br&gt;&lt;br&gt;#define LOG4CXX_CHAR_API 1
&lt;br&gt;#define LOG4CXX_WCHAR_T_API 1
&lt;br&gt;#define LOG4CXX_UNICHAR_API 0
&lt;br&gt;#define LOG4CXX_CFSTRING_API
&lt;br&gt;&lt;br&gt;&lt;br&gt;No change.
&lt;br&gt;&lt;br&gt;&lt;br&gt;So, now to try and use UTF8 and no wide characters:
&lt;br&gt;$ant -Dfind=false -Denable-wchar_t=no -Denable -Dwith-logchar=utf-8
&lt;br&gt;&lt;br&gt;#define LOG4CXX_LOGCHAR_IS_UTF8 0
&lt;br&gt;#if LOG4CXX_LOGCHAR_IS_UTF8
&lt;br&gt;#define LOG4CXX_LOGCHAR_IS_WCHAR 0
&lt;br&gt;#else
&lt;br&gt;#define LOG4CXX_LOGCHAR_IS_WCHAR 1
&lt;br&gt;#endif
&lt;br&gt;#define LOG4CXX_LOGCHAR_IS_UNICHAR 0
&lt;br&gt;&lt;br&gt;#define LOG4CXX_CHAR_API 1
&lt;br&gt;#define LOG4CXX_WCHAR_T_API 1
&lt;br&gt;#define LOG4CXX_UNICHAR_API 0
&lt;br&gt;#define LOG4CXX_CFSTRING_API
&lt;br&gt;&lt;br&gt;&lt;br&gt;Again, no change.
&lt;br&gt;&lt;br&gt;&lt;br&gt;So I've been modifying log4cxx.hw. &amp;nbsp;I seem to have wchar_t and utf-8
&lt;br&gt;working independently. Can these be compiled into the same shared
&lt;br&gt;library? Or do I need separate ones? And how should I handle the
&lt;br&gt;modified header log4cxx.h when putting it into a dependency / 3rd
&lt;br&gt;party folder? I.e., two includes folders?
&lt;br&gt;&lt;br&gt;However, back to the build. When I set the following, I get many
&lt;br&gt;errors (can post if needed):
&lt;br&gt;#define LOG4CXX_LOGCHAR_IS_UTF8 0
&lt;br&gt;#if LOG4CXX_LOGCHAR_IS_UTF8
&lt;br&gt;#define LOG4CXX_LOGCHAR_IS_WCHAR 0
&lt;br&gt;#else
&lt;br&gt;#define LOG4CXX_LOGCHAR_IS_WCHAR 0
&lt;br&gt;#endif
&lt;br&gt;#define LOG4CXX_LOGCHAR_IS_UNICHAR 1
&lt;br&gt;&lt;br&gt;#define LOG4CXX_CHAR_API 0
&lt;br&gt;#define LOG4CXX_WCHAR_T_API 0
&lt;br&gt;#define LOG4CXX_UNICHAR_API 1
&lt;br&gt;#define LOG4CXX_CFSTRING_API
&lt;br&gt;&lt;br&gt;&lt;br&gt;These are reduced when I include the char and wchar APIs...
&lt;br&gt;#define LOG4CXX_LOGCHAR_IS_UTF8 0
&lt;br&gt;#if LOG4CXX_LOGCHAR_IS_UTF8
&lt;br&gt;#define LOG4CXX_LOGCHAR_IS_WCHAR 0
&lt;br&gt;#else
&lt;br&gt;#define LOG4CXX_LOGCHAR_IS_WCHAR 0
&lt;br&gt;#endif
&lt;br&gt;#define LOG4CXX_LOGCHAR_IS_UNICHAR 1
&lt;br&gt;&lt;br&gt;#define LOG4CXX_CHAR_API 1
&lt;br&gt;#define LOG4CXX_WCHAR_T_API 1
&lt;br&gt;#define LOG4CXX_UNICHAR_API 1
&lt;br&gt;#define LOG4CXX_CFSTRING_API
&lt;br&gt;&lt;br&gt;...to:
&lt;br&gt;- ndc.cpp(265) : error C2039: 'message' : is not a member of
&lt;br&gt;'std::pair&amp;lt;_Ty1,_Ty2&amp;gt;'
&lt;br&gt;- ndc.cpp(282) : error C2039: 'message' : is not a member of
&lt;br&gt;'std::pair&amp;lt;_Ty1,_Ty2&amp;gt;'
&lt;br&gt;- transcoder.cpp(35) : fatal error C1083: Cannot open include file:
&lt;br&gt;'CoreFoundation/CFString.h': No such file or directory.
&lt;br&gt;&lt;br&gt;I looked at ndc.cpp and hacked / changed both lines 265 &amp; 282 from:
&lt;br&gt;Transcoder::encode(stack.top().message, dst);
&lt;br&gt;to:
&lt;br&gt;Transcoder::encode(getMessage(stack.top()), dst);
&lt;br&gt;&lt;br&gt;I had no idea and didn't look into it but it compiled; I was desperate.
&lt;br&gt;&lt;br&gt;But the second error is not hackable. Why is CoreFoundation required?
&lt;br&gt;&lt;br&gt;#if LOG4CXX_LOGCHAR_IS_UNICHAR || LOG4CXX_CFSTRING_API || LOG4CXX_UNICHAR_API
&lt;br&gt;#include &amp;lt;CoreFoundation/CFString.h&amp;gt;
&lt;br&gt;#endif
&lt;br&gt;&lt;br&gt;&lt;br&gt;What I have I misunderstood?
&lt;br&gt;&lt;br&gt;The following doesn't complain (compile or run-time) but it the
&lt;br&gt;characters appears as question marks in the output:
&lt;br&gt;LOG4CXX_DEBUG(logger, LOG4CXX_STR(&amp;quot;the message u30A8\u30FC\u30B8\u30A7&amp;quot;))
&lt;br&gt;&lt;br&gt;I guess it is something to do with the &amp;quot;with-charset&amp;quot; but I can't
&lt;br&gt;modify the build options (-Dwith-charset) and I don't know where else
&lt;br&gt;to modify this...
&lt;br&gt;&lt;br&gt;Again, sorry for the long post. Hopefully it makes sense - it is a
&lt;br&gt;Friday night after all.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Sam
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ant-build-options-not-working-on-Windows--%28unichar%2C-wchar_t%2C-etc%29-tp26125512p26125512.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26019158</id>
	<title>Building log4cxx</title>
	<published>2009-10-22T17:19:05Z</published>
	<updated>2009-10-22T17:19:05Z</updated>
	<author>
		<name>Vinay Maddi</name>
	</author>
	<content type="html">Hello All,&lt;br&gt;&lt;br&gt;I am building log4cxx using Makefile. Everything works fine. I have one question though.&lt;br&gt;I am trying to write my own appender. This appender uses axis2c libraries. I put my appender in log4cxx src and building. But since my appender uses axis2C libraries, I need to link axis2C libraries to log4cxx while building.&lt;br&gt;
&lt;br&gt;I tried adding libraries in Makefile (LDFLAGS ). But its not working.&lt;br&gt;&lt;br&gt;Could some point me in the right direction.&lt;br&gt;&lt;br&gt;Thanks&lt;br&gt;Vinay&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Oct 22, 2009 at 11:18 AM, Moshe Matitya &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26019158&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Moshe.Matitya@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;











&lt;div link=&quot;blue&quot; vlink=&quot;purple&quot; lang=&quot;EN-US&quot;&gt;

&lt;div&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;I have been trying, unsuccessfully, to figure out how to
install log4cxx on Linux with Ant.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt; &lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;In the past, when installing log4cxx 0.9.7 on a Linux
machine, I would build and install it using Make, as follows:  To build
it, I would run the following commands:&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;           
autogen.sh&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;           
configure&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;           
make&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;Then, to install it, I would simply run:&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;           
make install&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;This would install all the library files, include files,
etc., in their proper locations.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt; &lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;Now, however, I am using log4cxx 0.10.0, which I build using
Ant.  The default target in the Ant build
script compiles and links the sources, and runs the unit tests.  However,
I don&amp;#39;t see how one is supposed to then install it, and I can&amp;#39;t find any
instructions about how to do this in the documentation.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt; &lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;There doesn&amp;#39;t seem to be a target in the Ant build script
called &amp;quot;install&amp;quot;, or anything similar.  So how does one install
log4cxx when using Ant?&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt; &lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;Thanks,&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt; &lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;Moshe Z. Matitya&lt;/span&gt;&lt;/font&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;


&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;XConnect Global Networks&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt; &lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/div&gt;


&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Building-log4cxx-tp26019158p26019158.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26016514</id>
	<title>RE: Installing log4cxx on Linux with Ant</title>
	<published>2009-10-22T13:16:04Z</published>
	<updated>2009-10-22T13:16:04Z</updated>
	<author>
		<name>Moshe Matitya-4</name>
	</author>
	<content type="html">&lt;html dir=&quot;ltr&quot;&gt;&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;&gt;
&lt;meta name=&quot;GENERATOR&quot; content=&quot;MSHTML 8.00.6001.18828&quot;&gt;

&lt;/head&gt;
&lt;body bgcolor=&quot;#ffffff&quot; ocsi=&quot;x&quot;&gt;
&lt;div dir=&quot;ltr&quot;&gt;&lt;font color=&quot;#000000&quot; size=&quot;2&quot; face=&quot;Tahoma&quot;&gt;No, not really.&amp;nbsp; install-sh is not a script for installing log4cxx, it's just a general utility that does little more than copy a specified file from one place to another.&amp;nbsp; In order to use install-sh
 to install log4cxx, I'd first need to know exactly which files are supposed to be installed, and where.&amp;nbsp; This information is not documented anywhere that I know of.&amp;nbsp; And if I were to take the time and trouble to figure out that information, then install-sh
 would provide very little advantage over simply using cp and chmod.&lt;/font&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot;&gt;&lt;font color=&quot;#000000&quot; size=&quot;2&quot; face=&quot;Tahoma&quot;&gt;It seems to me that there ought to be some way to install log4cxx using Ant, just like there is with Make.&amp;nbsp; I can't be the first person who's run into this problem.&amp;nbsp; How does everyone else install
 log4cxx on Linux/Unix?&lt;/font&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot;&gt;&lt;font color=&quot;#000000&quot; size=&quot;2&quot; face=&quot;Tahoma&quot;&gt;Moshe&lt;/font&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot;&gt;&lt;font color=&quot;#000000&quot; size=&quot;2&quot; face=&quot;Tahoma&quot;&gt;&lt;font face=&quot;tahoma&quot;&gt;&lt;/font&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot;&gt;&lt;font color=&quot;#000000&quot; size=&quot;2&quot; face=&quot;Tahoma&quot;&gt;&lt;font face=&quot;tahoma&quot;&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;/font&gt;
&lt;div style=&quot;DIRECTION: ltr&quot; id=&quot;divRpF529522&quot;&gt;
&lt;hr tabindex=&quot;-1&quot;&gt;
&lt;font size=&quot;2&quot; face=&quot;Tahoma&quot;&gt;&lt;b&gt;From:&lt;/b&gt; Cory Riddell [&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26016514&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cory@...&lt;/a&gt;]&lt;br&gt;
&lt;b&gt;Sent:&lt;/b&gt; Thursday, October 22, 2009 8:30 PM&lt;br&gt;
&lt;b&gt;To:&lt;/b&gt; Log4CXX User&lt;br&gt;
&lt;b&gt;Subject:&lt;/b&gt; Re: Installing log4cxx on Linux with Ant&lt;br&gt;
&lt;/font&gt;&lt;br&gt;
&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Does the install-sh script do what you want?&lt;br&gt;
&lt;br&gt;
Moshe Matitya wrote:
&lt;blockquote type=&quot;cite&quot;&gt;
&lt;div class=&quot;Section1&quot;&gt;
&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot;&gt;&lt;span style=&quot;FONT-FAMILY: Arial; FONT-SIZE: 10pt&quot;&gt;I have been trying, unsuccessfully, to figure out how to install log4cxx on Linux with Ant.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot;&gt;&lt;span style=&quot;FONT-FAMILY: Arial; FONT-SIZE: 10pt&quot;&gt;&lt;/span&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot;&gt;&lt;span style=&quot;FONT-FAMILY: Arial; FONT-SIZE: 10pt&quot;&gt;In the past, when installing log4cxx 0.9.7 on a Linux machine, I would build and install it using Make, as follows:&amp;nbsp; To build it, I would run the following commands:&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot;&gt;&lt;span style=&quot;FONT-FAMILY: Arial; FONT-SIZE: 10pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; autogen.sh&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot;&gt;&lt;span style=&quot;FONT-FAMILY: Arial; FONT-SIZE: 10pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; configure&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot;&gt;&lt;span style=&quot;FONT-FAMILY: Arial; FONT-SIZE: 10pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; make&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot;&gt;&lt;span style=&quot;FONT-FAMILY: Arial; FONT-SIZE: 10pt&quot;&gt;Then, to install it, I would simply run:&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot;&gt;&lt;span style=&quot;FONT-FAMILY: Arial; FONT-SIZE: 10pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; make install&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot;&gt;&lt;span style=&quot;FONT-FAMILY: Arial; FONT-SIZE: 10pt&quot;&gt;This would install all the library files, include files, etc., in their proper locations.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot;&gt;&lt;span style=&quot;FONT-FAMILY: Arial; FONT-SIZE: 10pt&quot;&gt;&lt;/span&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot;&gt;&lt;span style=&quot;FONT-FAMILY: Arial; FONT-SIZE: 10pt&quot;&gt;Now, however, I am using log4cxx 0.10.0, which I build using Ant.&amp;nbsp; The default target in the Ant build script compiles and links the sources, and runs the unit
 tests.&amp;nbsp; However, I don't see how one is supposed to then install it, and I can't find any instructions about how to do this in the documentation.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot;&gt;&lt;span style=&quot;FONT-FAMILY: Arial; FONT-SIZE: 10pt&quot;&gt;&lt;/span&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot;&gt;&lt;span style=&quot;FONT-FAMILY: Arial; FONT-SIZE: 10pt&quot;&gt;There doesn't seem to be a target in the Ant build script called &amp;quot;install&amp;quot;, or anything similar.&amp;nbsp; So how does one install log4cxx when using Ant?&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot;&gt;&lt;span style=&quot;FONT-FAMILY: Arial; FONT-SIZE: 10pt&quot;&gt;&lt;/span&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot;&gt;&lt;span style=&quot;FONT-FAMILY: Arial; FONT-SIZE: 10pt&quot;&gt;Thanks,&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot;&gt;&lt;span style=&quot;FONT-FAMILY: Arial; FONT-SIZE: 10pt&quot;&gt;&lt;/span&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot;&gt;&lt;span style=&quot;FONT-FAMILY: Arial; FONT-SIZE: 10pt&quot;&gt;Moshe Z. Matitya&lt;/span&gt;&lt;/font&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot;&gt;&lt;span style=&quot;FONT-FAMILY: Arial; FONT-SIZE: 10pt&quot;&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot;&gt;&lt;span style=&quot;FONT-FAMILY: Arial; FONT-SIZE: 10pt&quot;&gt;XConnect Global Networks&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot;&gt;&lt;span style=&quot;FONT-FAMILY: Arial; FONT-SIZE: 10pt&quot;&gt;&lt;/span&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Installing-log4cxx-on-Linux-with-Ant-tp26014790p26016514.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26015007</id>
	<title>Re: Installing log4cxx on Linux with Ant</title>
	<published>2009-10-22T11:30:20Z</published>
	<updated>2009-10-22T11:30:20Z</updated>
	<author>
		<name>Cory Riddell-3</name>
	</author>
	<content type="html">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;meta content=&quot;text/html;charset=ISO-8859-1&quot; http-equiv=&quot;Content-Type&quot;&gt;
&lt;/head&gt;
&lt;body bgcolor=&quot;#ffffff&quot; text=&quot;#000000&quot;&gt;
Does the install-sh script do what you want?&lt;br&gt;
&lt;br&gt;
Moshe Matitya wrote:
&lt;blockquote cite=&quot;mid:6EA53FAD386F9D46B97D49BFE148D5140606F0BF@ISR-JLM-MAIL1.xconnect.co.il&quot; type=&quot;cite&quot;&gt;
  &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; &quot;&gt;
  &lt;meta name=&quot;Generator&quot; content=&quot;Microsoft Word 11 (filtered medium)&quot;&gt;
  &lt;o:SmartTagType namespaceuri=&quot;urn:schemas-microsoft-com:office:smarttags&quot; name=&quot;place&quot;&gt;
  &lt;o:SmartTagType namespaceuri=&quot;urn:schemas-microsoft-com:office:smarttags&quot; name=&quot;PersonName&quot;&gt;&lt;!--[if !mso]&gt;
&lt;style&gt;
st1\:*{behavior:url(#default#ieooui) }
&lt;/style&gt;
&lt;![endif]--&gt;
  &lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1026&quot; /&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapelayout v:ext=&quot;edit&quot;&gt;
  &lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot; /&gt;
 &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;
  &lt;/o:SmartTagType&gt;&lt;/o:SmartTagType&gt;
  &lt;div class=&quot;Section1&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;I have been trying,
unsuccessfully, to figure out how to
install log4cxx on Linux with &lt;st1:place w:st=&quot;on&quot;&gt;Ant.&lt;/st1:place&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;In the past, when
installing log4cxx 0.9.7 on a Linux
machine, I would build and install it using Make, as follows:&amp;nbsp; To build
it, I would run the following commands:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
autogen.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
configure&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
make&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;Then, to install it, I
would simply run:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
make install&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;This would install all
the library files, include files,
etc., in their proper locations.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;Now, however, I am using
log4cxx 0.10.0, which I build using
  &lt;st1:place w:st=&quot;on&quot;&gt;Ant.&lt;/st1:place&gt;&amp;nbsp; The default target in the Ant
build
script compiles and links the sources, and runs the unit tests.&amp;nbsp;
However,
I don't see how one is supposed to then install it, and I can't find
any
instructions about how to do this in the documentation.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;There doesn't seem to be
a target in the Ant build script
called &quot;install&quot;, or anything similar.&amp;nbsp; So how does one install
log4cxx when using Ant?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;Thanks,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;st1:PersonName w:st=&quot;on&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;Moshe Z.
Matitya&lt;/span&gt;&lt;/font&gt;&lt;/st1:PersonName&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;XConnect Global Networks&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
  &lt;/div&gt;
&lt;/blockquote&gt;
&lt;/body&gt;
&lt;/html&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Installing-log4cxx-on-Linux-with-Ant-tp26014790p26015007.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26014790</id>
	<title>Installing log4cxx on Linux with Ant</title>
	<published>2009-10-22T11:18:35Z</published>
	<updated>2009-10-22T11:18:35Z</updated>
	<author>
		<name>Moshe Matitya-4</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:st1=&quot;urn:schemas-microsoft-com:office:smarttags&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;meta http-equiv=Content-Type content=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 11 (filtered medium)&quot;&gt;
&lt;o:SmartTagType namespaceuri=&quot;urn:schemas-microsoft-com:office:smarttags&quot; name=&quot;place&quot; /&gt;
&lt;o:SmartTagType namespaceuri=&quot;urn:schemas-microsoft-com:office:smarttags&quot; name=&quot;PersonName&quot; /&gt;
&lt;!--[if !mso]&gt;
&lt;style&gt;
st1\:*{behavior:url(#default#ieooui) }
&lt;/style&gt;
&lt;![endif]--&gt;

&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1026&quot; /&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapelayout v:ext=&quot;edit&quot;&gt;
  &lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot; /&gt;
 &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;
&lt;/head&gt;

&lt;body lang=EN-US link=blue vlink=purple&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;I have been trying, unsuccessfully, to figure out how to
install log4cxx on Linux with &lt;st1:place w:st=&quot;on&quot;&gt;Ant.&lt;/st1:place&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;In the past, when installing log4cxx 0.9.7 on a Linux
machine, I would build and install it using Make, as follows:&amp;nbsp; To build
it, I would run the following commands:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
autogen.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
configure&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
make&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;Then, to install it, I would simply run:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
make install&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;This would install all the library files, include files,
etc., in their proper locations.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;Now, however, I am using log4cxx 0.10.0, which I build using
&lt;st1:place w:st=&quot;on&quot;&gt;Ant.&lt;/st1:place&gt;&amp;nbsp; The default target in the Ant build
script compiles and links the sources, and runs the unit tests.&amp;nbsp; However,
I don't see how one is supposed to then install it, and I can't find any
instructions about how to do this in the documentation.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;There doesn't seem to be a target in the Ant build script
called &amp;quot;install&amp;quot;, or anything similar.&amp;nbsp; So how does one install
log4cxx when using Ant?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;Thanks,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;st1:PersonName w:st=&quot;on&quot;&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:Arial'&gt;Moshe Z. Matitya&lt;/span&gt;&lt;/font&gt;&lt;/st1:PersonName&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:Arial'&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;XConnect Global Networks&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Installing-log4cxx-on-Linux-with-Ant-tp26014790p26014790.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25971356</id>
	<title>Re: Build fail on AIX using XLC compiler</title>
	<published>2009-10-20T01:17:23Z</published>
	<updated>2009-10-20T01:17:23Z</updated>
	<author>
		<name>Zhou Tao</name>
	</author>
	<content type="html">&lt;div&gt;Experts,&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;I looked through the simpledateformat.h header file and made the below change and the build of simpledateformat.cpp passed. It looks like the below syntax to use the std::locale class causes the problem when enable the -D_LARGE_FILES compiler flag for AIX XLC.&lt;/div&gt;

&lt;div&gt; &lt;/div&gt;
&lt;div&gt;change the below:&lt;/div&gt;
&lt;div&gt;namespace std { class locale; }&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;to be:&lt;/div&gt;
&lt;div&gt;using std::locale;&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;or to be:&lt;/div&gt;
&lt;div&gt;#if LOG4CXX_HAS_STD_LOCALE&lt;br&gt;#include &amp;lt;locale&amp;gt;&lt;br&gt;#endif&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Then the build of simpledateformat.cpp succeed. Is there some reason to use the std::locale this way? To support multi-platforms? Or someone could provide a formal fix based on my change?&lt;br&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;BTW, my building env:&lt;/div&gt;
&lt;div&gt;CC = xlc_r&lt;/div&gt;
&lt;div&gt;CXX = xlC_r&lt;/div&gt;
&lt;div&gt;CFLAGS = -q64 -D_LARGE_FILES -qarch=ppc64 -qsmp&lt;/div&gt;
&lt;div&gt;CXXFLAGS= -q64 -D_LARGE_FILES -qarch=ppc64 -qsmp -qpic=large&lt;/div&gt;
&lt;div&gt;LDFLAGS = -q64 -qsmp -brtl -bbigtoc&lt;/div&gt;&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Thanks,&lt;/div&gt;
&lt;div&gt;Tom&lt;br&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_quote&quot;&gt;2009/9/29 Zhou Tao &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25971356&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;zhoutao109@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid&quot;&gt;Hi all,&lt;br&gt;&lt;br&gt;I am building log4cxx on AIX using XLC as the compiler. And I turn on the -D_LARGE_FILES compiler flag for our purpose. However seems that log4cxx dislikes the compiler flag. I could build APR, APR-UTIL and when I build log4cxx, errors happen when build the simpledateformat.cpp file. The error message is the following,&lt;br&gt;
&lt;br&gt;/bin/sh ../../../libtool --tag=CXX --mode=compile /usr/vacpp/bin/xlC_r -DPACKAGE_NAME=\&amp;quot;\&amp;quot; -DPACKAGE_TARNAME=\&amp;quot;\&amp;quot; -DPACKAGE_VERSION=\&amp;quot;\&amp;quot; -DPACKAGE_STRING=\&amp;quot;\&amp;quot; -DPACKAGE_BUGREPORT=\&amp;quot;\&amp;quot; -DPACKAGE=\&amp;quot;log4cxx\&amp;quot; -DVERSION=\&amp;quot;0.10.0\&amp;quot; -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_MBSRTOWCS=1 -DHAVE_WCSTOMBS=1 -DHAVE_SYSLOG=1 -DHAVE_FWIDE=1  -I. -I. -I../../../src/main/include -I../../../src/main/include  -I/usr/vacpp/include  -U__STR__ -D_THREAD_SAFE -D_USE_IRS  -I/usr/u/tzhou/log4cxx_build/aixibmp64/nodebug/install/apr/include/apr-1   -I/usr/u/tzhou/log4cxx_build/aixibmp64/nodebug/install/apr-util/include/apr-1   -q64 -D_LARGE_FILES -qlonglong -c -o simpledateformat.lo simpledateformat.cpp&lt;br&gt;
 /usr/vacpp/bin/xlC_r -DPACKAGE_NAME=\&amp;quot;\&amp;quot; -DPACKAGE_TARNAME=\&amp;quot;\&amp;quot; -DPACKAGE_VERSION=\&amp;quot;\&amp;quot; -DPACKAGE_STRING=\&amp;quot;\&amp;quot; -DPACKAGE_BUGREPORT=\&amp;quot;\&amp;quot; -DPACKAGE=\&amp;quot;log4cxx\&amp;quot; -DVERSION=\&amp;quot;0.10.0\&amp;quot; -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_MBSRTOWCS=1 -DHAVE_WCSTOMBS=1 -DHAVE_SYSLOG=1 -DHAVE_FWIDE=1 -I. -I. -I../../../src/main/include -I../../../src/main/include -I/usr/vacpp/include -U__STR__ -D_THREAD_SAFE -D_USE_IRS -I/usr/u/tzhou/log4cxx_build/aixibmp64/nodebug/install/apr/include/apr-1 -I/usr/u/tzhou/log4cxx_build/aixibmp64/nodebug/install/apr-util/include/apr-1 -q64 -D_LARGE_FILES -qlonglong -c -M simpledateformat.cpp  -DPIC -o .libs/simpledateformat.o&lt;br&gt;
&amp;quot;simpledateformat.cpp&amp;quot;, line 735.15: 1540-1118 (S) The declaration of &amp;quot;defaultLocale&amp;quot; uses the undefined class &amp;quot;std::locale&amp;quot; when the class must be complete.&lt;br&gt;&amp;quot;simpledateformat.cpp&amp;quot;, line 124.25: 1540-0218 (S) The call does not match any parameter list for &amp;quot;std::has_facet&amp;lt;std::_LFS_ON::time_put&amp;lt;wchar_t,std::ostreambuf_iterator&amp;lt;wchar_t,std::char_traits&amp;lt;wchar_t&amp;gt; &amp;gt; &amp;gt; &amp;gt;&amp;quot;.&lt;br&gt;
&amp;quot;/usr/vacpp/include/locale&amp;quot;, line 194.14: 1540-1283 (I) &amp;quot;std::_LFS_ON::has_facet&amp;lt;std::_LFS_ON::time_put&amp;lt;wchar_t,std::ostreambuf_iterator&amp;lt;wchar_t,std::char_traits&amp;lt;wchar_t&amp;gt; &amp;gt; &amp;gt; &amp;gt;(const locale &amp;amp;)&amp;quot; is not a viable candidate.&lt;br&gt;
&amp;quot;simpledateformat.cpp&amp;quot;, line 124.35: 1540-0256 (I) A parameter of type &amp;quot;const std::_LFS_ON::locale &amp;amp;&amp;quot; cannot be initialized with an expression of type &amp;quot;const std::locale&amp;quot;.&lt;br&gt;&amp;quot;simpledateformat.cpp&amp;quot;, line 125.63: 1540-0218 (S) The call does not match any parameter list for &amp;quot;std::use_facet&amp;lt;std::_LFS_ON::time_put&amp;lt;wchar_t,std::ostreambuf_iterator&amp;lt;wchar_t,std::char_traits&amp;lt;wchar_t&amp;gt; &amp;gt; &amp;gt; &amp;gt;&amp;quot;.&lt;br&gt;
&amp;quot;/usr/vacpp/include/xlocale&amp;quot;, line 293.19: 1540-1283 (I) &amp;quot;std::_LFS_ON::use_facet&amp;lt;std::_LFS_ON::time_put&amp;lt;wchar_t,std::ostreambuf_iterator&amp;lt;wchar_t,std::char_traits&amp;lt;wchar_t&amp;gt; &amp;gt; &amp;gt; &amp;gt;(const locale &amp;amp;)&amp;quot; is not a viable candidate.&lt;br&gt;
&amp;quot;simpledateformat.cpp&amp;quot;, line 125.73: 1540-0256 (I) A parameter of type &amp;quot;const std::_LFS_ON::locale &amp;amp;&amp;quot; cannot be initialized with an expression of type &amp;quot;const std::locale&amp;quot;.&lt;br&gt;&amp;quot;simpledateformat.cpp&amp;quot;, line 136.25: 1540-0218 (S) The call does not match any parameter list for &amp;quot;std::has_facet&amp;lt;std::_LFS_ON::time_put&amp;lt;char,std::ostreambuf_iterator&amp;lt;char,std::char_traits&amp;lt;char&amp;gt; &amp;gt; &amp;gt; &amp;gt;&amp;quot;.&lt;br&gt;
&amp;quot;/usr/vacpp/include/locale&amp;quot;, line 194.14: 1540-1283 (I) &amp;quot;std::_LFS_ON::has_facet&amp;lt;std::_LFS_ON::time_put&amp;lt;char,std::ostreambuf_iterator&amp;lt;char,std::char_traits&amp;lt;char&amp;gt; &amp;gt; &amp;gt; &amp;gt;(const locale &amp;amp;)&amp;quot; is not a viable candidate.&lt;br&gt;
&amp;quot;simpledateformat.cpp&amp;quot;, line 136.35: 1540-0256 (I) A parameter of type &amp;quot;const std::_LFS_ON::locale &amp;amp;&amp;quot; cannot be initialized with an expression of type &amp;quot;const std::locale&amp;quot;.&lt;br&gt;&amp;quot;simpledateformat.cpp&amp;quot;, line 137.60: 1540-0218 (S) The call does not match any parameter list for &amp;quot;std::use_facet&amp;lt;std::_LFS_ON::time_put&amp;lt;char,std::ostreambuf_iterator&amp;lt;char,std::char_traits&amp;lt;char&amp;gt; &amp;gt; &amp;gt; &amp;gt;&amp;quot;.&lt;br&gt;
&amp;quot;/usr/vacpp/include/xlocale&amp;quot;, line 293.19: 1540-1283 (I) &amp;quot;std::_LFS_ON::use_facet&amp;lt;std::_LFS_ON::time_put&amp;lt;char,std::ostreambuf_iterator&amp;lt;char,std::char_traits&amp;lt;char&amp;gt; &amp;gt; &amp;gt; &amp;gt;(const locale &amp;amp;)&amp;quot; is not a viable candidate.&lt;br&gt;
&amp;quot;simpledateformat.cpp&amp;quot;, line 137.70: 1540-0256 (I) A parameter of type &amp;quot;const std::_LFS_ON::locale &amp;amp;&amp;quot; cannot be initialized with an expression of type &amp;quot;const std::locale&amp;quot;.&lt;br&gt;make[3]: *** [simpledateformat.lo] Error 1&lt;br&gt;
&lt;br&gt;Any insight for this issue is greatly appreciated.&lt;br&gt;Tom&lt;br&gt;
&lt;div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;
&lt;div&gt;&lt;/div&gt;&lt;br&gt;-- &lt;br&gt;Thanks and Regards,&lt;br&gt;Tom&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Build-fail-on-AIX-using-XLC-compiler-tp25673664p25971356.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25888933</id>
	<title>Re: How to clean up the log4cxx objects to avoid the memory leak?</title>
	<published>2009-10-14T03:55:20Z</published>
	<updated>2009-10-14T03:55:20Z</updated>
	<author>
		<name>deepak singh-4</name>
	</author>
	<content type="html">Hi Tom, &lt;div&gt;   You dont need to reclaim the memory, smart pointer will do it automatically once it goes out of scope.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;   LoggerPtr is a typedef for helpers::ObjectPtrT&amp;lt;Logger&amp;gt;. The class &lt;/div&gt;
&lt;div&gt;  ObjectPtr is a Smart Pointer pattern implementation, which uses the &lt;/div&gt;&lt;div&gt;  helper class ObjectImpl. This class uses apr_atomic_inc32 and &lt;/div&gt;&lt;div&gt;  apr_atomic_dec32 to count the references to itself. If the reference &lt;/div&gt;
&lt;div&gt;  count is 0, it deletes itself.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;   You can validate it by running any memory profiler on your code.&lt;/div&gt;&lt;div&gt;Thanks&lt;/div&gt;&lt;div&gt;Deepak&lt;/div&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Oct 14, 2009 at 1:50 PM, Zhou Tao &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25888933&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;zhoutao109@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;&lt;div&gt;Thanks, Deepak&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;So if want to close one created looger and release its releated resources, what should I do? using smart pointer, I don&amp;#39;t need to delete the objects.&lt;/div&gt;
&lt;div&gt;But How can I release the resources? Do I need to call the below API to release the resources?&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;//close the appender&lt;/div&gt;
&lt;div&gt;_appenderPtr-&amp;gt;close();&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;//close all appenders associated with the logger&lt;/div&gt;
&lt;div&gt;_loggerPtr-&amp;gt;closeNestedAppenders();&lt;/div&gt;
&lt;div&gt;_loggerPtr-&amp;gt;removeAllAppenders();&lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;4&quot;&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;Or some other APIs I need to call to release all resources to avoid memory leak?&lt;br&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_quote&quot;&gt;2009/10/14 deepak singh &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25888933&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;deepak.iitg@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;padding-left:1ex;margin:0px 0px 0px 0.8ex;border-left:#ccc 1px solid&quot;&gt;You should use smart pointer instead.&lt;br&gt;e.g&lt;br&gt;&lt;pre&gt;   &lt;font size=&quot;4&quot;&gt; log4cxx::LogManager::resetConfiguration(); &lt;br&gt;


&lt;a name=&quot;1245222fb75b0bc3_12451a498a18ec57_124517de67ea22a5_l00059&quot; target=&quot;_top&quot;&gt;&lt;/a&gt;   log4cxx::LayoutPtr layoutPtr(&lt;span&gt;new&lt;/span&gt; log4cxx::PatternLayout(&lt;span&gt;&amp;quot;%c-%p (%d{dd MMM yyyy HH:mm:ss}) [%-5t] %m%n&amp;quot;&lt;/span&gt;)); &lt;br&gt;

&lt;a name=&quot;1245222fb75b0bc3_12451a498a18ec57_124517de67ea22a5_l00060&quot; target=&quot;_top&quot;&gt;&lt;/a&gt;   log4cxx::AppenderPtr appenderPtr( &lt;span&gt;new&lt;/span&gt; log4cxx::ConsoleAppender(layoutPtr, &lt;span&gt;&amp;quot;System.err&amp;quot;&lt;/span&gt;)); &lt;br&gt;&lt;a name=&quot;1245222fb75b0bc3_12451a498a18ec57_124517de67ea22a5_l00061&quot; target=&quot;_top&quot;&gt;&lt;/a&gt;   log4cxx::BasicConfigurator::configure(appenderPtr);&lt;/font&gt;&lt;br&gt;



&lt;/pre&gt;Thanks&lt;br&gt;&lt;font color=&quot;#888888&quot;&gt;Deepak&lt;/font&gt; 
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;br&gt;
&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Oct 14, 2009 at 8:41 AM, Zhou Tao &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25888933&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;zhoutao109@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;padding-left:1ex;margin:0pt 0pt 0pt 0.8ex;border-left:rgb(204,204,204) 1px solid&quot;&gt;
&lt;div&gt;Experts,&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;I am using the log4cxx-0.10.0. And at the begining of the application, I create the log4cxx instances including Logger, FileAppender, PatternLayout etc. Sometime within the application, I need to destroy the instances.&lt;/div&gt;


&lt;div&gt;For example,&lt;/div&gt;
&lt;div&gt;To create the below objects at the begining,&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;_layout = new log4cxx::PatternLayout(format);&lt;/div&gt;
&lt;div&gt;_fileAppender = new log4cxx::RollingFileAppender();&lt;/div&gt;
&lt;div&gt;....&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Then somewhere to remove the above objects like the below,&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;delete _fileAppender;&lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;font size=&quot;2&quot;&gt;delete _layout;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;font size=&quot;2&quot;&gt;....&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;font size=&quot;2&quot;&gt;However when deleting the objects, always core dump on windows. On unix, when the application exit, also get a core dump.&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;Then how to clean up the log4cxx instances or a sequence is required when deleting the objects? or some example code?&lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;font size=&quot;2&quot;&gt;&lt;/font&gt;&lt;/font&gt; &lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;font size=&quot;2&quot;&gt;Any suggestion are highly appreciated.&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;font size=&quot;2&quot;&gt;Thanks,&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;font size=&quot;2&quot;&gt;Tom&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-clean-up-the-log4cxx-objects-to-avoid-the-memory-leak--tp25884691p25888933.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25887151</id>
	<title>Re: How to clean up the log4cxx objects to avoid the memory leak?</title>
	<published>2009-10-14T01:20:49Z</published>
	<updated>2009-10-14T01:20:49Z</updated>
	<author>
		<name>Zhou Tao</name>
	</author>
	<content type="html">&lt;div&gt;Thanks, Deepak&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;So if want to close one created looger and release its releated resources, what should I do? using smart pointer, I don&amp;#39;t need to delete the objects.&lt;/div&gt;
&lt;div&gt;But How can I release the resources? Do I need to call the below API to release the resources?&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;//close the appender&lt;/div&gt;
&lt;div&gt;_appenderPtr-&amp;gt;close();&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;//close all appenders associated with the logger&lt;/div&gt;
&lt;div&gt;_loggerPtr-&amp;gt;closeNestedAppenders();&lt;/div&gt;
&lt;div&gt;_loggerPtr-&amp;gt;removeAllAppenders();&lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;4&quot;&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;Or some other APIs I need to call to release all resources to avoid memory leak?&lt;br&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_quote&quot;&gt;2009/10/14 deepak singh &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25887151&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;deepak.iitg@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid&quot;&gt;You should use smart pointer instead.&lt;br&gt;e.g&lt;br&gt;&lt;pre&gt;   &lt;font size=&quot;4&quot;&gt; log4cxx::LogManager::resetConfiguration(); &lt;br&gt;

&lt;a name=&quot;12451a498a18ec57_124517de67ea22a5_l00059&quot; target=&quot;_top&quot;&gt;&lt;/a&gt;   log4cxx::LayoutPtr layoutPtr(&lt;span&gt;new&lt;/span&gt; log4cxx::PatternLayout(&lt;span&gt;&amp;quot;%c-%p (%d{dd MMM yyyy HH:mm:ss}) [%-5t] %m%n&amp;quot;&lt;/span&gt;)); &lt;br&gt;
&lt;a name=&quot;12451a498a18ec57_124517de67ea22a5_l00060&quot; target=&quot;_top&quot;&gt;&lt;/a&gt;   log4cxx::AppenderPtr appenderPtr( &lt;span&gt;new&lt;/span&gt; log4cxx::ConsoleAppender(layoutPtr, &lt;span&gt;&amp;quot;System.err&amp;quot;&lt;/span&gt;)); &lt;br&gt;&lt;a name=&quot;12451a498a18ec57_124517de67ea22a5_l00061&quot; target=&quot;_top&quot;&gt;&lt;/a&gt;   log4cxx::BasicConfigurator::configure(appenderPtr);&lt;/font&gt;&lt;br&gt;


&lt;/pre&gt;Thanks&lt;br&gt;&lt;font color=&quot;#888888&quot;&gt;Deepak&lt;/font&gt; 
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;br&gt;
&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Oct 14, 2009 at 8:41 AM, Zhou Tao &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25887151&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;zhoutao109@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid&quot;&gt;
&lt;div&gt;Experts,&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;I am using the log4cxx-0.10.0. And at the begining of the application, I create the log4cxx instances including Logger, FileAppender, PatternLayout etc. Sometime within the application, I need to destroy the instances.&lt;/div&gt;

&lt;div&gt;For example,&lt;/div&gt;
&lt;div&gt;To create the below objects at the begining,&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;_layout = new log4cxx::PatternLayout(format);&lt;/div&gt;
&lt;div&gt;_fileAppender = new log4cxx::RollingFileAppender();&lt;/div&gt;
&lt;div&gt;....&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Then somewhere to remove the above objects like the below,&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;delete _fileAppender;&lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;font size=&quot;2&quot;&gt;delete _layout;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;font size=&quot;2&quot;&gt;....&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;font size=&quot;2&quot;&gt;However when deleting the objects, always core dump on windows. On unix, when the application exit, also get a core dump.&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;Then how to clean up the log4cxx instances or a sequence is required when deleting the objects? or some example code?&lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;font size=&quot;2&quot;&gt;&lt;/font&gt;&lt;/font&gt; &lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;font size=&quot;2&quot;&gt;Any suggestion are highly appreciated.&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;font size=&quot;2&quot;&gt;Thanks,&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;font size=&quot;2&quot;&gt;Tom&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-clean-up-the-log4cxx-objects-to-avoid-the-memory-leak--tp25884691p25887151.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25885474</id>
	<title>Re: How to clean up the log4cxx objects to avoid the memory leak?</title>
	<published>2009-10-13T22:20:22Z</published>
	<updated>2009-10-13T22:20:22Z</updated>
	<author>
		<name>deepak singh-4</name>
	</author>
	<content type="html">You should use smart pointer instead.&lt;br&gt;e.g&lt;br&gt;&lt;pre class=&quot;fragment&quot;&gt;   &lt;font size=&quot;4&quot;&gt; log4cxx::LogManager::resetConfiguration(); &lt;br&gt;&lt;a name=&quot;l00059&quot; target=&quot;_top&quot;&gt;&lt;/a&gt;   log4cxx::LayoutPtr layoutPtr(&lt;span class=&quot;keyword&quot;&gt;new&lt;/span&gt; log4cxx::PatternLayout(&lt;span class=&quot;stringliteral&quot;&gt;&amp;quot;%c-%p (%d{dd MMM yyyy HH:mm:ss}) [%-5t] %m%n&amp;quot;&lt;/span&gt;)); &lt;br&gt;
&lt;a name=&quot;l00060&quot; target=&quot;_top&quot;&gt;&lt;/a&gt;   log4cxx::AppenderPtr appenderPtr( &lt;span class=&quot;keyword&quot;&gt;new&lt;/span&gt; log4cxx::ConsoleAppender(layoutPtr, &lt;span class=&quot;stringliteral&quot;&gt;&amp;quot;System.err&amp;quot;&lt;/span&gt;)); &lt;br&gt;&lt;a name=&quot;l00061&quot; target=&quot;_top&quot;&gt;&lt;/a&gt;   log4cxx::BasicConfigurator::configure(appenderPtr);&lt;/font&gt;&lt;br&gt;
&lt;/pre&gt;Thanks&lt;br&gt;Deepak&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Oct 14, 2009 at 8:41 AM, Zhou Tao &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25885474&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;zhoutao109@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;div&gt;Experts,&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;I am using the log4cxx-0.10.0. And at the begining of the application, I create the log4cxx instances including Logger, FileAppender, PatternLayout etc. Sometime within the application, I need to destroy the instances.&lt;/div&gt;


&lt;div&gt;For example,&lt;/div&gt;
&lt;div&gt;To create the below objects at the begining,&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;_layout = new log4cxx::PatternLayout(format);&lt;/div&gt;
&lt;div&gt;_fileAppender = new log4cxx::RollingFileAppender();&lt;/div&gt;
&lt;div&gt;....&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Then somewhere to remove the above objects like the below,&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;delete _fileAppender;&lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;font size=&quot;2&quot;&gt;delete _layout;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;font size=&quot;2&quot;&gt;....&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;font size=&quot;2&quot;&gt;However when deleting the objects, always core dump on windows. On unix, when the application exit, also get a core dump.&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;Then how to clean up the log4cxx instances or a sequence is required when deleting the objects? or some example code?&lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;font size=&quot;2&quot;&gt;&lt;/font&gt;&lt;/font&gt; &lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;font size=&quot;2&quot;&gt;Any suggestion are highly appreciated.&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;font size=&quot;2&quot;&gt;Thanks,&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;font size=&quot;2&quot;&gt;Tom&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-clean-up-the-log4cxx-objects-to-avoid-the-memory-leak--tp25884691p25885474.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25884691</id>
	<title>How to clean up the log4cxx objects to avoid the memory leak?</title>
	<published>2009-10-13T20:11:45Z</published>
	<updated>2009-10-13T20:11:45Z</updated>
	<author>
		<name>Zhou Tao</name>
	</author>
	<content type="html">&lt;div&gt;Experts,&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;I am using the log4cxx-0.10.0. And at the begining of the application, I create the log4cxx instances including Logger, FileAppender, PatternLayout etc. Sometime within the application, I need to destroy the instances.&lt;/div&gt;

&lt;div&gt;For example,&lt;/div&gt;
&lt;div&gt;To create the below objects at the begining,&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;_layout = new log4cxx::PatternLayout(format);&lt;/div&gt;
&lt;div&gt;_fileAppender = new log4cxx::RollingFileAppender();&lt;/div&gt;
&lt;div&gt;....&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Then somewhere to remove the above objects like the below,&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;delete _fileAppender;&lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;font size=&quot;2&quot;&gt;delete _layout;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;font size=&quot;2&quot;&gt;....&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;font size=&quot;2&quot;&gt;However when deleting the objects, always core dump on windows. On unix, when the application exit, also get a core dump.&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;Then how to clean up the log4cxx instances or a sequence is required when deleting the objects? or some example code?&lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;font size=&quot;2&quot;&gt;&lt;/font&gt;&lt;/font&gt; &lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;font size=&quot;2&quot;&gt;Any suggestion are highly appreciated.&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;font size=&quot;2&quot;&gt;Thanks,&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;font size=&quot;2&quot;&gt;Tom&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-clean-up-the-log4cxx-objects-to-avoid-the-memory-leak--tp25884691p25884691.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25673664</id>
	<title>Build fail on AIX using XLC compiler</title>
	<published>2009-09-29T18:36:22Z</published>
	<updated>2009-09-29T18:36:22Z</updated>
	<author>
		<name>Zhou Tao</name>
	</author>
	<content type="html">Hi all,&lt;br&gt;&lt;br&gt;I am building log4cxx on AIX using XLC as the compiler. And I turn on the -D_LARGE_FILES compiler flag for our purpose. However seems that log4cxx dislikes the compiler flag. I could build APR, APR-UTIL and when I build log4cxx, errors happen when build the simpledateformat.cpp file. The error message is the following,&lt;br&gt;
&lt;br&gt;/bin/sh ../../../libtool --tag=CXX --mode=compile /usr/vacpp/bin/xlC_r -DPACKAGE_NAME=\&amp;quot;\&amp;quot; -DPACKAGE_TARNAME=\&amp;quot;\&amp;quot; -DPACKAGE_VERSION=\&amp;quot;\&amp;quot; -DPACKAGE_STRING=\&amp;quot;\&amp;quot; -DPACKAGE_BUGREPORT=\&amp;quot;\&amp;quot; -DPACKAGE=\&amp;quot;log4cxx\&amp;quot; -DVERSION=\&amp;quot;0.10.0\&amp;quot; -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_MBSRTOWCS=1 -DHAVE_WCSTOMBS=1 -DHAVE_SYSLOG=1 -DHAVE_FWIDE=1  -I. -I. -I../../../src/main/include -I../../../src/main/include  -I/usr/vacpp/include  -U__STR__ -D_THREAD_SAFE -D_USE_IRS  -I/usr/u/tzhou/log4cxx_build/aixibmp64/nodebug/install/apr/include/apr-1   -I/usr/u/tzhou/log4cxx_build/aixibmp64/nodebug/install/apr-util/include/apr-1   -q64 -D_LARGE_FILES -qlonglong -c -o simpledateformat.lo simpledateformat.cpp&lt;br&gt;
 /usr/vacpp/bin/xlC_r -DPACKAGE_NAME=\&amp;quot;\&amp;quot; -DPACKAGE_TARNAME=\&amp;quot;\&amp;quot; -DPACKAGE_VERSION=\&amp;quot;\&amp;quot; -DPACKAGE_STRING=\&amp;quot;\&amp;quot; -DPACKAGE_BUGREPORT=\&amp;quot;\&amp;quot; -DPACKAGE=\&amp;quot;log4cxx\&amp;quot; -DVERSION=\&amp;quot;0.10.0\&amp;quot; -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_MBSRTOWCS=1 -DHAVE_WCSTOMBS=1 -DHAVE_SYSLOG=1 -DHAVE_FWIDE=1 -I. -I. -I../../../src/main/include -I../../../src/main/include -I/usr/vacpp/include -U__STR__ -D_THREAD_SAFE -D_USE_IRS -I/usr/u/tzhou/log4cxx_build/aixibmp64/nodebug/install/apr/include/apr-1 -I/usr/u/tzhou/log4cxx_build/aixibmp64/nodebug/install/apr-util/include/apr-1 -q64 -D_LARGE_FILES -qlonglong -c -M simpledateformat.cpp  -DPIC -o .libs/simpledateformat.o&lt;br&gt;
&amp;quot;simpledateformat.cpp&amp;quot;, line 735.15: 1540-1118 (S) The declaration of &amp;quot;defaultLocale&amp;quot; uses the undefined class &amp;quot;std::locale&amp;quot; when the class must be complete.&lt;br&gt;&amp;quot;simpledateformat.cpp&amp;quot;, line 124.25: 1540-0218 (S) The call does not match any parameter list for &amp;quot;std::has_facet&amp;lt;std::_LFS_ON::time_put&amp;lt;wchar_t,std::ostreambuf_iterator&amp;lt;wchar_t,std::char_traits&amp;lt;wchar_t&amp;gt; &amp;gt; &amp;gt; &amp;gt;&amp;quot;.&lt;br&gt;
&amp;quot;/usr/vacpp/include/locale&amp;quot;, line 194.14: 1540-1283 (I) &amp;quot;std::_LFS_ON::has_facet&amp;lt;std::_LFS_ON::time_put&amp;lt;wchar_t,std::ostreambuf_iterator&amp;lt;wchar_t,std::char_traits&amp;lt;wchar_t&amp;gt; &amp;gt; &amp;gt; &amp;gt;(const locale &amp;amp;)&amp;quot; is not a viable candidate.&lt;br&gt;
&amp;quot;simpledateformat.cpp&amp;quot;, line 124.35: 1540-0256 (I) A parameter of type &amp;quot;const std::_LFS_ON::locale &amp;amp;&amp;quot; cannot be initialized with an expression of type &amp;quot;const std::locale&amp;quot;.&lt;br&gt;&amp;quot;simpledateformat.cpp&amp;quot;, line 125.63: 1540-0218 (S) The call does not match any parameter list for &amp;quot;std::use_facet&amp;lt;std::_LFS_ON::time_put&amp;lt;wchar_t,std::ostreambuf_iterator&amp;lt;wchar_t,std::char_traits&amp;lt;wchar_t&amp;gt; &amp;gt; &amp;gt; &amp;gt;&amp;quot;.&lt;br&gt;
&amp;quot;/usr/vacpp/include/xlocale&amp;quot;, line 293.19: 1540-1283 (I) &amp;quot;std::_LFS_ON::use_facet&amp;lt;std::_LFS_ON::time_put&amp;lt;wchar_t,std::ostreambuf_iterator&amp;lt;wchar_t,std::char_traits&amp;lt;wchar_t&amp;gt; &amp;gt; &amp;gt; &amp;gt;(const locale &amp;amp;)&amp;quot; is not a viable candidate.&lt;br&gt;
&amp;quot;simpledateformat.cpp&amp;quot;, line 125.73: 1540-0256 (I) A parameter of type &amp;quot;const std::_LFS_ON::locale &amp;amp;&amp;quot; cannot be initialized with an expression of type &amp;quot;const std::locale&amp;quot;.&lt;br&gt;&amp;quot;simpledateformat.cpp&amp;quot;, line 136.25: 1540-0218 (S) The call does not match any parameter list for &amp;quot;std::has_facet&amp;lt;std::_LFS_ON::time_put&amp;lt;char,std::ostreambuf_iterator&amp;lt;char,std::char_traits&amp;lt;char&amp;gt; &amp;gt; &amp;gt; &amp;gt;&amp;quot;.&lt;br&gt;
&amp;quot;/usr/vacpp/include/locale&amp;quot;, line 194.14: 1540-1283 (I) &amp;quot;std::_LFS_ON::has_facet&amp;lt;std::_LFS_ON::time_put&amp;lt;char,std::ostreambuf_iterator&amp;lt;char,std::char_traits&amp;lt;char&amp;gt; &amp;gt; &amp;gt; &amp;gt;(const locale &amp;amp;)&amp;quot; is not a viable candidate.&lt;br&gt;
&amp;quot;simpledateformat.cpp&amp;quot;, line 136.35: 1540-0256 (I) A parameter of type &amp;quot;const std::_LFS_ON::locale &amp;amp;&amp;quot; cannot be initialized with an expression of type &amp;quot;const std::locale&amp;quot;.&lt;br&gt;&amp;quot;simpledateformat.cpp&amp;quot;, line 137.60: 1540-0218 (S) The call does not match any parameter list for &amp;quot;std::use_facet&amp;lt;std::_LFS_ON::time_put&amp;lt;char,std::ostreambuf_iterator&amp;lt;char,std::char_traits&amp;lt;char&amp;gt; &amp;gt; &amp;gt; &amp;gt;&amp;quot;.&lt;br&gt;
&amp;quot;/usr/vacpp/include/xlocale&amp;quot;, line 293.19: 1540-1283 (I) &amp;quot;std::_LFS_ON::use_facet&amp;lt;std::_LFS_ON::time_put&amp;lt;char,std::ostreambuf_iterator&amp;lt;char,std::char_traits&amp;lt;char&amp;gt; &amp;gt; &amp;gt; &amp;gt;(const locale &amp;amp;)&amp;quot; is not a viable candidate.&lt;br&gt;
&amp;quot;simpledateformat.cpp&amp;quot;, line 137.70: 1540-0256 (I) A parameter of type &amp;quot;const std::_LFS_ON::locale &amp;amp;&amp;quot; cannot be initialized with an expression of type &amp;quot;const std::locale&amp;quot;.&lt;br&gt;make[3]: *** [simpledateformat.lo] Error 1&lt;br&gt;
&lt;br&gt;Any insight for this issue is greatly appreciated.&lt;br&gt;Tom&lt;br&gt;&lt;div id=&quot;:uj&quot; class=&quot;tB&quot;&gt;&lt;/div&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Build-fail-on-AIX-using-XLC-compiler-tp25673664p25673664.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25612254</id>
	<title>RE: log4cxx with JNI... Crashes when using appender and layout?</title>
	<published>2009-09-25T06:33:26Z</published>
	<updated>2009-09-25T06:33:26Z</updated>
	<author>
		<name>Zmuda, Matthew</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:st1=&quot;urn:schemas-microsoft-com:office:smarttags&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 11 (filtered medium)&quot;&gt;
&lt;!--[if !mso]&gt;
&lt;style&gt;
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
&lt;/style&gt;
&lt;![endif]--&gt;
&lt;title&gt;log4cxx with JNI... Crashes when using appender and layout?&lt;/title&gt;
&lt;o:SmartTagType namespaceuri=&quot;urn:schemas-microsoft-com:office:smarttags&quot; name=&quot;country-region&quot; /&gt;
&lt;o:SmartTagType namespaceuri=&quot;urn:schemas-microsoft-com:office:smarttags&quot; name=&quot;City&quot; /&gt;
&lt;o:SmartTagType namespaceuri=&quot;urn:schemas-microsoft-com:office:smarttags&quot; name=&quot;place&quot; /&gt;
&lt;!--[if !mso]&gt;
&lt;style&gt;
st1\:*{behavior:url(#default#ieooui) }
&lt;/style&gt;
&lt;![endif]--&gt;


&lt;/head&gt;

&lt;body lang=EN-US link=blue vlink=purple&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;Fixed.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;Was a problem with the built libraries I
was using.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;I simply rebuilt the project and now work!
&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;Matt Zmuda&lt;/span&gt;&lt;/font&gt;&lt;font color=navy&gt;&lt;span style='color:navy'&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;Software Developer - Tools Group&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;div class=MsoNormal align=center style='text-align:center'&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:12.0pt'&gt;

&lt;hr size=2 width=&quot;100%&quot; align=center tabindex=-1&gt;

&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;

&lt;p class=MsoNormal&gt;&lt;b&gt;&lt;font size=2 face=Tahoma&gt;&lt;span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'&gt;From:&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size=2 face=Tahoma&gt;&lt;span style='font-size:10.0pt;font-family:Tahoma'&gt; Zmuda, Matthew
[mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25612254&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matthew_Zmuda@...&lt;/a&gt;] &lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;Sent:&lt;/span&gt;&lt;/b&gt; September 25, 2009 8:20 AM&lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;To:&lt;/span&gt;&lt;/b&gt; Log4CXX User&lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;Subject:&lt;/span&gt;&lt;/b&gt; RE: log4cxx with JNI...
Crashes when using appender and layout?&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;I wanted to add to this issue.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;I noticed the error only occurs once the
app finishes running, so probably when the DLL is unloading and there is some
cleaning occurring.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;Should I be doing any cleanup from the
below code? I didn&amp;#8217;t look into it much yet but it seems that all the
XxxxxPtr classes are smart pointers?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;And from examples I&amp;#8217;ve seen there
has been no cleanup.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;Thanks,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;Matt Zmuda&lt;/span&gt;&lt;/font&gt;&lt;font color=navy&gt;&lt;span style='color:navy'&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;Software Developer - Tools Group&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;div class=MsoNormal align=center style='text-align:center'&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:12.0pt'&gt;

&lt;hr size=2 width=&quot;100%&quot; align=center tabindex=-1&gt;

&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;

&lt;p class=MsoNormal&gt;&lt;b&gt;&lt;font size=2 face=Tahoma&gt;&lt;span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'&gt;From:&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size=2 face=Tahoma&gt;&lt;span style='font-size:10.0pt;font-family:Tahoma'&gt; Zmuda, Matthew
[mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25612254&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matthew_Zmuda@...&lt;/a&gt;] &lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;Sent:&lt;/span&gt;&lt;/b&gt; September 24, 2009 5:38 PM&lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;To:&lt;/span&gt;&lt;/b&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25612254&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;log4cxx-user@...&lt;/a&gt;&lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;Subject:&lt;/span&gt;&lt;/b&gt; log4cxx with JNI...
Crashes when using appender and layout?&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:Arial'&gt;When
calling native code from java the following works when making the native calls:&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:
&quot;Courier New&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BasicConfigurator::configure();&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:
&quot;Courier New&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LoggerPtr rootLogger =
Logger::getRootLogger();&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:
&quot;Courier New&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOG4CXX_DEBUG(rootLogger,&lt;/span&gt;&lt;/font&gt; &lt;font size=2 color=&quot;#a31515&quot; face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:#A31515'&gt;&amp;quot;debug message&amp;quot;&lt;/span&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;);&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:
&quot;Courier New&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOG4CXX_INFO(rootLogger,&lt;/span&gt;&lt;/font&gt; &lt;font size=2 color=&quot;#a31515&quot; face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:#A31515'&gt;&amp;quot;info message&amp;quot;&lt;/span&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;);&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:
&quot;Courier New&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOG4CXX_WARN(rootLogger,&lt;/span&gt;&lt;/font&gt; &lt;font size=2 color=&quot;#a31515&quot; face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:#A31515'&gt;&amp;quot;warn message&amp;quot;&lt;/span&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;);&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:
&quot;Courier New&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOG4CXX_ERROR(rootLogger,&lt;/span&gt;&lt;/font&gt; &lt;font size=2 color=&quot;#a31515&quot; face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:#A31515'&gt;&amp;quot;error message&amp;quot;&lt;/span&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;);&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:
&quot;Courier New&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOG4CXX_FATAL(rootLogger,&lt;/span&gt;&lt;/font&gt; &lt;font size=2 color=&quot;#a31515&quot; face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:#A31515'&gt;&amp;quot;fatal message&amp;quot;&lt;/span&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;);&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;a name=&quot;&quot; target=&quot;_top&quot;&gt;&lt;/a&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;If I try setting appender and layout like:&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:
&quot;Courier New&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LoggerPtr rootLogger =
Logger::getRootLogger();&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:12.0pt'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;'&gt;log4cxx::ConsoleAppenderPtr appender(&lt;font color=blue&gt;&lt;span style='color:blue'&gt;new&lt;/span&gt;&lt;/font&gt;
log4cxx::ConsoleAppender());&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:12.0pt'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;'&gt;log4cxx::LayoutPtr layout(&lt;font color=blue&gt;&lt;span style='color:blue'&gt;new&lt;/span&gt;&lt;/font&gt; log4cxx::SimpleLayout());&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:
&quot;Courier New&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; appender-&amp;gt;setLayout(layout);&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:12.0pt'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;'&gt;log4cxx::helpers::Pool pool;&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:
&quot;Courier New&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; appender-&amp;gt;activateOptions(pool);&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:12.0pt'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;'&gt;rootLogger-&amp;gt;addAppender(appender);&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:12.0pt'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;'&gt;LogManager::getLoggerRepository()-&amp;gt;setConfigured(&lt;font color=blue&gt;&lt;span style='color:blue'&gt;true&lt;/span&gt;&lt;/font&gt;);&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:
&quot;Courier New&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOG4CXX_DEBUG(rootLogger,&lt;/span&gt;&lt;/font&gt; &lt;font size=2 color=&quot;#a31515&quot; face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:#A31515'&gt;&amp;quot;debug message&amp;quot;&lt;/span&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;);&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:
&quot;Courier New&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOG4CXX_INFO(rootLogger,&lt;/span&gt;&lt;/font&gt; &lt;font size=2 color=&quot;#a31515&quot; face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:#A31515'&gt;&amp;quot;info message&amp;quot;&lt;/span&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;);&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:
&quot;Courier New&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOG4CXX_WARN(rootLogger,&lt;/span&gt;&lt;/font&gt; &lt;font size=2 color=&quot;#a31515&quot; face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:#A31515'&gt;&amp;quot;warn message&amp;quot;&lt;/span&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;);&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:
&quot;Courier New&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOG4CXX_ERROR(rootLogger,&lt;/span&gt;&lt;/font&gt; &lt;font size=2 color=&quot;#a31515&quot; face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:#A31515'&gt;&amp;quot;error message&amp;quot;&lt;/span&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;);&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:
&quot;Courier New&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOG4CXX_FATAL(rootLogger,&lt;/span&gt;&lt;/font&gt; &lt;font size=2 color=&quot;#a31515&quot; face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:#A31515'&gt;&amp;quot;fatal message&amp;quot;&lt;/span&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;);&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:Arial'&gt;I
get memory could not be&lt;/span&gt;&lt;/font&gt; &lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:Arial'&gt;&amp;#8220;written&amp;#8221; Application
error and JVM crashes.&amp;nbsp; The messages show up in proper format and all but
after that what I get.&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:Arial'&gt;Any
ideas?&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:Arial'&gt;Matt
Zmuda&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:Arial'&gt;Software
Developer - Tools Group&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:Arial'&gt;TVWorks
- Platform Division, &lt;st1:place w:st=&quot;on&quot;&gt;&lt;st1:City w:st=&quot;on&quot;&gt;London&lt;/st1:City&gt;,
 &lt;st1:country-region w:st=&quot;on&quot;&gt;Canada&lt;/st1:country-region&gt;&lt;/st1:place&gt;&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:Arial'&gt;(519)
963-4304&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/log4cxx-with-JNI...-Crashes-when-using-appender-and-layout--tp25603137p25612254.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25611218</id>
	<title>RE: Are log4j and log4cxx configuration files identical?</title>
	<published>2009-09-25T05:24:27Z</published>
	<updated>2009-09-25T05:24:27Z</updated>
	<author>
		<name>Zmuda, Matthew</name>
	</author>
	<content type="html">Thanks for this!
&lt;br&gt;&lt;br&gt;Matt Zmuda
&lt;br&gt;Software Developer - Tools Group
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: log4cxx [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25611218&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;log4cxx@...&lt;/a&gt;] 
&lt;br&gt;Sent: September 25, 2009 8:16 AM
&lt;br&gt;To: Log4CXX User
&lt;br&gt;Subject: Re: Are log4j and log4cxx configuration files identical?
&lt;br&gt;&lt;br&gt;&amp;gt;I am coding a JNI project and planning to use log4j in java portion and log4cxx in c++. 
&lt;br&gt;&amp;gt;Can the same configurations files be used for both?
&lt;br&gt;The formats are the same, but because of the answer to your third question, you may need two different files unless you add appenders
&lt;br&gt;programmatically, or split your loggers such that C++ loggers go to one appender and Java loggers go to another.
&lt;br&gt;&lt;br&gt;&amp;gt;If I change logging level at runtime in Java will the changes also be made in c++ logger?
&lt;br&gt;If you are making the changes in Java, they will not have any affect on the log4cxx logging configuration. If you are making changes to the file, and
&lt;br&gt;you have both your Java initialization and C++ initialization both set up to configure and watch, then both should see the file change and reconfigure
&lt;br&gt;based on the new file settings.
&lt;br&gt;&lt;br&gt;&amp;gt;Finally can both Java and C++ loggers log to the same file?
&lt;br&gt;Both Java and C++ will try to open the file with write permissions, so this will not work.
&lt;br&gt;&lt;br&gt;-Andy
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Are-log4j-and-log4cxx-configuration-files-identical--tp25596841p25611218.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25611159</id>
	<title>RE: log4cxx with JNI... Crashes when using appender and layout?</title>
	<published>2009-09-25T05:20:00Z</published>
	<updated>2009-09-25T05:20:00Z</updated>
	<author>
		<name>Zmuda, Matthew</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:st1=&quot;urn:schemas-microsoft-com:office:smarttags&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 11 (filtered medium)&quot;&gt;
&lt;!--[if !mso]&gt;
&lt;style&gt;
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
&lt;/style&gt;
&lt;![endif]--&gt;
&lt;title&gt;log4cxx with JNI... Crashes when using appender and layout?&lt;/title&gt;
&lt;o:SmartTagType namespaceuri=&quot;urn:schemas-microsoft-com:office:smarttags&quot; name=&quot;country-region&quot; /&gt;
&lt;o:SmartTagType namespaceuri=&quot;urn:schemas-microsoft-com:office:smarttags&quot; name=&quot;City&quot; /&gt;
&lt;o:SmartTagType namespaceuri=&quot;urn:schemas-microsoft-com:office:smarttags&quot; name=&quot;place&quot; /&gt;
&lt;!--[if !mso]&gt;
&lt;style&gt;
st1\:*{behavior:url(#default#ieooui) }
&lt;/style&gt;
&lt;![endif]--&gt;


&lt;/head&gt;

&lt;body lang=EN-US link=blue vlink=purple&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;I wanted to add to this issue.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;I noticed the error only occurs once the
app finishes running, so probably when the DLL is unloading and there is some
cleaning occurring.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;Should I be doing any cleanup from the
below code? I didn&amp;#8217;t look into it much yet but it seems that all the XxxxxPtr
classes are smart pointers?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;And from examples I&amp;#8217;ve seen there
has been no cleanup.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;Thanks,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;Matt Zmuda&lt;/span&gt;&lt;/font&gt;&lt;font color=navy&gt;&lt;span style='color:navy'&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;Software Developer - Tools Group&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;div class=MsoNormal align=center style='text-align:center'&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:12.0pt'&gt;

&lt;hr size=2 width=&quot;100%&quot; align=center tabindex=-1&gt;

&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;

&lt;p class=MsoNormal&gt;&lt;b&gt;&lt;font size=2 face=Tahoma&gt;&lt;span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'&gt;From:&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size=2 face=Tahoma&gt;&lt;span style='font-size:10.0pt;font-family:Tahoma'&gt; Zmuda, Matthew
[mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25611159&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matthew_Zmuda@...&lt;/a&gt;] &lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;Sent:&lt;/span&gt;&lt;/b&gt; September 24, 2009 5:38 PM&lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;To:&lt;/span&gt;&lt;/b&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25611159&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;log4cxx-user@...&lt;/a&gt;&lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;Subject:&lt;/span&gt;&lt;/b&gt; log4cxx with JNI...
Crashes when using appender and layout?&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:Arial'&gt;When
calling native code from java the following works when making the native calls:&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:
&quot;Courier New&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BasicConfigurator::configure();&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:
&quot;Courier New&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LoggerPtr rootLogger =
Logger::getRootLogger();&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:
&quot;Courier New&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOG4CXX_DEBUG(rootLogger,&lt;/span&gt;&lt;/font&gt; &lt;font size=2 color=&quot;#a31515&quot; face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:#A31515'&gt;&amp;quot;debug message&amp;quot;&lt;/span&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;);&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:
&quot;Courier New&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOG4CXX_INFO(rootLogger,&lt;/span&gt;&lt;/font&gt; &lt;font size=2 color=&quot;#a31515&quot; face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:#A31515'&gt;&amp;quot;info message&amp;quot;&lt;/span&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;);&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:
&quot;Courier New&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOG4CXX_WARN(rootLogger,&lt;/span&gt;&lt;/font&gt; &lt;font size=2 color=&quot;#a31515&quot; face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:#A31515'&gt;&amp;quot;warn message&amp;quot;&lt;/span&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;);&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:
&quot;Courier New&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOG4CXX_ERROR(rootLogger,&lt;/span&gt;&lt;/font&gt; &lt;font size=2 color=&quot;#a31515&quot; face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:#A31515'&gt;&amp;quot;error message&amp;quot;&lt;/span&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;);&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:
&quot;Courier New&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOG4CXX_FATAL(rootLogger,&lt;/span&gt;&lt;/font&gt; &lt;font size=2 color=&quot;#a31515&quot; face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:#A31515'&gt;&amp;quot;fatal message&amp;quot;&lt;/span&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;);&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;a name=&quot;&quot; target=&quot;_top&quot;&gt;&lt;/a&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;If I try setting appender and layout like:&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:
&quot;Courier New&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LoggerPtr rootLogger = Logger::getRootLogger();&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:12.0pt'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;'&gt;log4cxx::ConsoleAppenderPtr appender(&lt;font color=blue&gt;&lt;span style='color:blue'&gt;new&lt;/span&gt;&lt;/font&gt;
log4cxx::ConsoleAppender());&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:12.0pt'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;'&gt;log4cxx::LayoutPtr layout(&lt;font color=blue&gt;&lt;span style='color:blue'&gt;new&lt;/span&gt;&lt;/font&gt; log4cxx::SimpleLayout());&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:
&quot;Courier New&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; appender-&amp;gt;setLayout(layout);&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:12.0pt'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;'&gt;log4cxx::helpers::Pool pool;&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:
&quot;Courier New&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; appender-&amp;gt;activateOptions(pool);&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:12.0pt'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;'&gt;rootLogger-&amp;gt;addAppender(appender);&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:12.0pt'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;'&gt;LogManager::getLoggerRepository()-&amp;gt;setConfigured(&lt;font color=blue&gt;&lt;span style='color:blue'&gt;true&lt;/span&gt;&lt;/font&gt;);&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:
&quot;Courier New&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOG4CXX_DEBUG(rootLogger,&lt;/span&gt;&lt;/font&gt; &lt;font size=2 color=&quot;#a31515&quot; face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:#A31515'&gt;&amp;quot;debug message&amp;quot;&lt;/span&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;);&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:
&quot;Courier New&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOG4CXX_INFO(rootLogger,&lt;/span&gt;&lt;/font&gt; &lt;font size=2 color=&quot;#a31515&quot; face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:#A31515'&gt;&amp;quot;info message&amp;quot;&lt;/span&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;);&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:
&quot;Courier New&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOG4CXX_WARN(rootLogger,&lt;/span&gt;&lt;/font&gt; &lt;font size=2 color=&quot;#a31515&quot; face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:#A31515'&gt;&amp;quot;warn message&amp;quot;&lt;/span&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;);&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:
&quot;Courier New&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOG4CXX_ERROR(rootLogger,&lt;/span&gt;&lt;/font&gt; &lt;font size=2 color=&quot;#a31515&quot; face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:#A31515'&gt;&amp;quot;error message&amp;quot;&lt;/span&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;);&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:
&quot;Courier New&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOG4CXX_FATAL(rootLogger,&lt;/span&gt;&lt;/font&gt; &lt;font size=2 color=&quot;#a31515&quot; face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:#A31515'&gt;&amp;quot;fatal message&amp;quot;&lt;/span&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;);&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:Arial'&gt;I
get memory could not be&lt;/span&gt;&lt;/font&gt; &lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:Arial'&gt;&amp;#8220;written&amp;#8221; Application
error and JVM crashes.&amp;nbsp; The messages show up in proper format and all but
after that what I get.&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:Arial'&gt;Any
ideas?&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:Arial'&gt;Matt
Zmuda&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:Arial'&gt;Software
Developer - Tools Group&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:Arial'&gt;TVWorks
- Platform Division, &lt;st1:place w:st=&quot;on&quot;&gt;&lt;st1:City w:st=&quot;on&quot;&gt;London&lt;/st1:City&gt;,
 &lt;st1:country-region w:st=&quot;on&quot;&gt;Canada&lt;/st1:country-region&gt;&lt;/st1:place&gt;&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:Arial'&gt;(519)
963-4304&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/log4cxx-with-JNI...-Crashes-when-using-appender-and-layout--tp25603137p25611159.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25611095</id>
	<title>Re: Are log4j and log4cxx configuration files identical?</title>
	<published>2009-09-25T05:16:02Z</published>
	<updated>2009-09-25T05:16:02Z</updated>
	<author>
		<name>log4cxx</name>
	</author>
	<content type="html">&amp;gt;I am coding a JNI project and planning to use log4j in java portion and log4cxx in c++. 
&lt;br&gt;&amp;gt;Can the same configurations files be used for both?
&lt;br&gt;The formats are the same, but because of the answer to your third question, you may need two different files unless you add appenders programmatically, or split your loggers such that C++ loggers go to one appender and Java loggers go to another.
&lt;br&gt;&lt;br&gt;&amp;gt;If I change logging level at runtime in Java will the changes also be made in c++ logger?
&lt;br&gt;If you are making the changes in Java, they will not have any affect on the log4cxx logging configuration. If you are making changes to the file, and you have both your Java initialization and C++ initialization both set up to configure and watch, then both should see the file change and reconfigure based on the new file settings.
&lt;br&gt;&lt;br&gt;&amp;gt;Finally can both Java and C++ loggers log to the same file?
&lt;br&gt;Both Java and C++ will try to open the file with write permissions, so this will not work.
&lt;br&gt;&lt;br&gt;-Andy
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Are-log4j-and-log4cxx-configuration-files-identical--tp25596841p25611095.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25603137</id>
	<title>log4cxx with JNI... Crashes when using appender and layout?</title>
	<published>2009-09-24T14:38:27Z</published>
	<updated>2009-09-24T14:38:27Z</updated>
	<author>
		<name>Zmuda, Matthew</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 3.2//EN&quot;&gt;
&lt;HTML&gt;
&lt;HEAD&gt;
&lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;META NAME=&quot;Generator&quot; CONTENT=&quot;MS Exchange Server version 6.5.7654.12&quot;&gt;
&lt;TITLE&gt;log4cxx with JNI... Crashes when using appender and layout?&lt;/TITLE&gt;
&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;!-- Converted from text/rtf format --&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;When calling native code from java the following works&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt; when making the native calls:&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BasicConfigurator::configure();&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LoggerPtr rootLogger = Logger::getRootLogger();&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOG4CXX_DEBUG(rootLogger,&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt; &lt;FONT COLOR=&quot;#A31515&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;&amp;quot;debug message&amp;quot;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;);&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOG4CXX_INFO(rootLogger,&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt; &lt;FONT COLOR=&quot;#A31515&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;&amp;quot;info message&amp;quot;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;);&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOG4CXX_WARN(rootLogger,&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt; &lt;FONT COLOR=&quot;#A31515&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;&amp;quot;warn message&amp;quot;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;);&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOG4CXX_ERROR(rootLogger,&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt; &lt;FONT COLOR=&quot;#A31515&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;&amp;quot;error message&amp;quot;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;);&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOG4CXX_FATAL(rootLogger,&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt; &lt;FONT COLOR=&quot;#A31515&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;&amp;quot;fatal message&amp;quot;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;);&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;A NAME=&quot;&quot; target=&quot;_top&quot;&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;If I try setting appender and layout like:&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LoggerPtr rootLogger = Logger::getRootLogger();&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;log4cxx::ConsoleAppenderPtr appender(&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT COLOR=&quot;#0000FF&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;new&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt; log4cxx::ConsoleAppender());&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;log4cxx::LayoutPtr layout(&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT COLOR=&quot;#0000FF&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;new&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt; log4cxx::SimpleLayout());&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; appender-&amp;gt;setLayout(layout);&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;log4cxx::helpers::Pool pool;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; appender-&amp;gt;activateOptions(pool);&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;rootLogger-&amp;gt;addAppender(appender);&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;LogManager::getLoggerRepository()-&amp;gt;setConfigured(&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT COLOR=&quot;#0000FF&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;true&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;);&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOG4CXX_DEBUG(rootLogger,&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt; &lt;FONT COLOR=&quot;#A31515&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;&amp;quot;debug message&amp;quot;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;);&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOG4CXX_INFO(rootLogger,&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt; &lt;FONT COLOR=&quot;#A31515&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;&amp;quot;info message&amp;quot;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;);&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOG4CXX_WARN(rootLogger,&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt; &lt;FONT COLOR=&quot;#A31515&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;&amp;quot;warn message&amp;quot;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;);&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOG4CXX_ERROR(rootLogger,&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt; &lt;FONT COLOR=&quot;#A31515&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;&amp;quot;error message&amp;quot;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;);&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOG4CXX_FATAL(rootLogger,&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt; &lt;FONT COLOR=&quot;#A31515&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;&amp;quot;fatal message&amp;quot;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;);&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;I get memory could not be&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt; &lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;&amp;#8220;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;written&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;&amp;#8221;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt; Application error and JVM crashes.&amp;nbsp; The messages show up in proper format and all but after that what I get.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;Any ideas?&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;Matt Zmuda&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;Software Developer - Tools Group&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;TVWorks - Platform Division, London, Canada&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;(519) 963-4304&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;/BODY&gt;
&lt;/HTML&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/log4cxx-with-JNI...-Crashes-when-using-appender-and-layout--tp25603137p25603137.html" />
</entry>

</feed>
