Return-Path: Delivered-To: apmail-logging-log4net-user-archive@www.apache.org Received: (qmail 61171 invoked from network); 24 Oct 2005 06:37:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Oct 2005 06:37:34 -0000 Received: (qmail 30837 invoked by uid 500); 24 Oct 2005 06:37:33 -0000 Delivered-To: apmail-logging-log4net-user-archive@logging.apache.org Received: (qmail 30793 invoked by uid 500); 24 Oct 2005 06:37:32 -0000 Mailing-List: contact log4net-user-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Log4NET User" List-Id: Delivered-To: mailing list log4net-user@logging.apache.org Received: (qmail 30782 invoked by uid 99); 24 Oct 2005 06:37:32 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Oct 2005 23:37:32 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [12.129.199.61] (HELO mail53-haw-R.bigfish.com) (12.129.199.61) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Oct 2005 23:37:30 -0700 Received: from mail53-haw.bigfish.com (localhost.localdomain [127.0.0.1]) by mail53-haw-R.bigfish.com (Postfix) with ESMTP id A34E8F3B79 for ; Mon, 24 Oct 2005 06:37:09 +0000 (UTC) X-BigFish: VP Received: by mail53-haw (MessageSwitch) id 1130135829627953_22970; Mon, 24 Oct 2005 06:37:09 +0000 (UCT) Received: from smtp01.oce.nl (smtp01.oce.nl [134.188.1.25]) by mail53-haw.bigfish.com (Postfix) with ESMTP id 3CCC2F3B40 for ; Mon, 24 Oct 2005 06:37:09 +0000 (UTC) Received: from smtp05.oce.nl (smtp05.oce.nl [134.188.1.26]) by smtp01.oce.nl (8.12.8p1/8.12.8) with ESMTP id j9O6b89j021278 for ; Mon, 24 Oct 2005 08:37:08 +0200 (MEST) Received: from smtp-venlo.oce.nl (localhost [127.0.0.1]) by smtp05.oce.nl (8.12.8p1/8.12.8) with ESMTP id j9O6b71W026732 for ; Mon, 24 Oct 2005 08:37:07 +0200 (MEST) Received: from smtp03.oce.nl (smtp03.oce.nl [134.188.150.26]) by smtp-venlo.oce.nl (8.12.8p1/8.12.8) with ESMTP id j9O6b4bl004173 for ; Mon, 24 Oct 2005 08:37:05 +0200 (MEST) Received: from smtp02.oce.nl (localhost [127.0.0.1]) by smtp03.oce.nl (8.12.8p1/8.12.8) with ESMTP id j9O6b4EQ017464 for ; Mon, 24 Oct 2005 08:37:04 +0200 (MEST) Received: from WS031556 (WS031556.oce.nl [134.188.163.112]) by smtp02.oce.nl (8.12.8p1/8.12.8) with SMTP id j9O6b3sv027357 for ; Mon, 24 Oct 2005 08:37:03 +0200 (MET DST) Message-ID: <001d01c5d865$588c66a0$70a3bc86@ocetemp.oce.nl> From: "Martijn Remmen" To: "Log4NET User" References: <20051023152059.76514.qmail@web33207.mail.mud.yahoo.com> Subject: Re: Log4net seems to hang when starting up windows service Date: Mon, 24 Oct 2005 08:37:03 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Filter-Version: 1.12a-oce (smtp-venlo) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Just to mention it, but I have the same behavior in my windows services. When log4net is used in the main thread, the service hangs for 30 seconds, and is then aborted. My soultion was create a working thread and only use log4net in that thread (this implies of course that the other thread takes a while before it is started). So this problem occurs more often. Martijn ----- Original Message ----- From: "Gary Overholt" To: Sent: Sunday, October 23, 2005 5:20 PM Subject: RE: Log4net seems to hang when starting up windows service Nicko, I just did a google search with 'GetCurrentProcess .net hangs' Some of the links are dead but you can look at the cached pages. The cached page for 'http://thedotnet.com/howto/work412709.aspx' may be of interest. My fix is definitly a hack. I was not going to post to the group until I looked at it further, but I saw that John had similar problems. I am very interested in any other suggestions. - gary Gary Overholt (303)359-9924 gary_overholt@yahoo.com __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com