Return-Path: Delivered-To: apmail-logging-log4cxx-user-archive@www.apache.org Received: (qmail 69241 invoked from network); 25 May 2005 19:20:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 May 2005 19:20:41 -0000 Received: (qmail 86346 invoked by uid 500); 25 May 2005 19:20:40 -0000 Delivered-To: apmail-logging-log4cxx-user-archive@logging.apache.org Received: (qmail 86321 invoked by uid 500); 25 May 2005 19:20:40 -0000 Mailing-List: contact log4cxx-user-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Log4CXX User" List-Id: Delivered-To: mailing list log4cxx-user@logging.apache.org Received: (qmail 86308 invoked by uid 99); 25 May 2005 19:20:40 -0000 X-ASF-Spam-Status: No, hits=2.7 required=10.0 tests=FORGED_YAHOO_RCVD,FROM_ENDS_IN_NUMS,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of gcallu-log4cxx-user@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 25 May 2005 12:20:38 -0700 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Db1ML-00023x-8B for log4cxx-user@logging.apache.org; Wed, 25 May 2005 21:16:08 +0200 Received: from 204-62-9-129.intervoice-brite.com ([204.62.9.129]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 May 2005 21:16:05 +0200 Received: from fsun93 by 204-62-9-129.intervoice-brite.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 May 2005 21:16:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: log4cxx-user@logging.apache.org From: Frank Sun Subject: thread.join() in AsyncAppender causes program temination on Win32 Date: Wed, 25 May 2005 19:13:32 +0000 (UTC) Lines: 13 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 204.62.9.129 (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4) Sender: news X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Used both VC6 and VS.net 2003 compiler. The application will be abnormally terminated when AsyncAppender::close()function is called. I found the line, thread.join(); inside caused the problem. It seems the logging activities prior the close() function call works fine. I got the file by insert a FileAppender into AsyncAppender. Did I do something wrong? Please help me figure it out, Thanks Frank