Return-Path: Delivered-To: apmail-apr-commits-archive@www.apache.org Received: (qmail 75611 invoked from network); 29 Aug 2006 11:55:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Aug 2006 11:55:32 -0000 Received: (qmail 86723 invoked by uid 500); 29 Aug 2006 11:55:31 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 86680 invoked by uid 500); 29 Aug 2006 11:55:31 -0000 Mailing-List: contact commits-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: dev@apr.apache.org List-Id: Delivered-To: mailing list commits@apr.apache.org Received: (qmail 86658 invoked by uid 99); 29 Aug 2006 11:55:30 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Aug 2006 04:55:30 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [207.113.241.148] (HELO iss04.interliant.com) (207.113.241.148) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Aug 2006 04:55:29 -0700 Received: from EX-007.mail.navisite.com (ex-007.interliant.com [207.113.240.186]) by iss04.interliant.com (8.10.2/8.10.2) with ESMTP id k7TC0lX29531; Tue, 29 Aug 2006 07:00:50 -0500 (CDT) Received: from [192.168.0.168] ([213.202.108.47]) by EX-007.mail.navisite.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 29 Aug 2006 06:55:03 -0500 Message-ID: <44F42B13.1050407@apache.org> Date: Tue, 29 Aug 2006 13:54:59 +0200 From: Mladen Turk User-Agent: Mozilla MIME-Version: 1.0 To: dev@apr.apache.org CC: commits@apr.apache.org, =?UTF-8?B?QnJhbmtvIMSMaWJlag==?= Subject: Re: svn commit: r434327 - in /apr/apr/trunk: CHANGES include/arch/win32/apr_arch_threadproc.h misc/win32/start.c threadproc/win32/threadpriv.c References: <20060824072438.7C0B61A981A@eris.apache.org> <44F08D91.60703@rowe-clan.net> In-Reply-To: <44F08D91.60703@rowe-clan.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 29 Aug 2006 11:55:03.0706 (UTC) FILETIME=[F6A73FA0:01C6CB61] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N William A. Rowe, Jr. wrote: > I thought the concensus was that the MSVC's own destructor callbacks > were more interesting, since they would permit apr to be statically > bound to the app? > I have tried the think Brane mentioned. Even contacted the original author of the article from Codeguru (Jac Goudsmit), and it works, but only for WIN32 flatform. Building for AMD64 fails with things like: MSVCRTD.lib(crtexe.obj) : warning LNK4078: multiple '.CRT' sections found with different attributes (40400040) MSVCRTD.lib(cinitexe.obj) : warning LNK4254: section '.CRT' (C0000040) merged into '.rdata' (40000040) with different attributes ... and it doesn't work although builds with warnings. I have contacted Jac to see if he has some ideas why this doesn't work on non x86 CPU's, but I'm skeptic because those link warning says that for AMD64 those segments are read only, and thus you can not insert your own handler. Regards, Mladen.