Return-Path: Delivered-To: apmail-qpid-users-archive@www.apache.org Received: (qmail 71804 invoked from network); 21 May 2009 18:59:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 May 2009 18:59:18 -0000 Received: (qmail 25763 invoked by uid 500); 21 May 2009 18:59:31 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 25733 invoked by uid 500); 21 May 2009 18:59:31 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 25723 invoked by uid 99); 21 May 2009 18:59:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 May 2009 18:59:31 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of shuston@riverace.com designates 69.39.89.30 as permitted sender) Received: from [69.39.89.30] (HELO a2s43.a2hosting.com) (69.39.89.30) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 May 2009 18:59:18 +0000 Received: from c-24-63-92-14.hsd1.ma.comcast.net ([24.63.92.14] helo=hope) by a2s43.a2hosting.com with esmtpa (Exim 4.69) (envelope-from ) id 1M7DTl-0008Qh-Af for users@qpid.apache.org; Thu, 21 May 2009 14:58:57 -0400 From: "Steve Huston" To: Subject: RE: ATL Project Date: Thu, 21 May 2009 14:58:52 -0400 Organization: Riverace Corporation Message-ID: <55CCAE27DB0A4132A17C46AB8813E528@hope> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6822 In-Reply-To: Importance: Normal Thread-Index: AcnZHPwu+3E6EJLmQKqV2SyIizpg+wAQWl+wAAOQE1AAD1pNMAAUXt9gABKLY+A= X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - a2s43.a2hosting.com X-AntiAbuse: Original Domain - qpid.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - riverace.com X-Virus-Checked: Checked by ClamAV on apache.org Hi Mariano, > apologies my ignorance, but: No worries... > 1) what do you means when you write about "tss allocations" ? Could you try a test for me there? In qpid/cpp/src/qpid/sys/Thread.h there is this code: #ifdef _WIN32 # define QPID_TSS __declspec(thread) #elif defined (__GNUC__) # define QPID_TSS __thread #elif defined (__SUNPRO_CC) # define QPID_TSS __thread #else # error "Dont know how to define QPID_TSS for this platform" #endif Could you please change the second line to: # define QPID_TSS (remove the __declspec(thread) from the line) Then rebuild qpid and your application and retest. > 2) is there another way to build my project to obtain my goal? If you can link qpidcommon and qpidclient directly rather than having them dynamically loaded, that would also work around this issue. -Steve > -----Messaggio originale----- > Da: Steve Huston [mailto:shuston@riverace.com]=20 > Inviato: gioved=EC 21 maggio 2009 02:24 > A: users@qpid.apache.org > Oggetto: RE: ATL Project >=20 > Hi Mariano, >=20 > > Thanks for your prompt answer, > > I've downloaded your recommended version (0.5 RC4) kit but nothing > is > > changed ... >=20 > Hmmm... >=20 > > If I compile in Win32 Console Project it works all fine ...=20 > > But, the same > > code, in ATL Project give me everytime the same error, in=20 > debug mode=20 > > it jumps in the catch(...) statement and the error object=20 > show me the=20 > > "bad allocation" message. >=20 > Ok, I think I know what the problem may be. >=20 > > My need is to obtain an AMQP COM+ Component that is usable in ASP=20 > > enviroment like: > >=20 > > ... > > Set conn =3D CreateObject("MyComponent.conn") > > conn.open(host,port,user,password) > > ... > >=20 > > To reach this goal I thing I need to incapsulate the QPID=20 > in one ATL=20 > > Project ... Right? >=20 > I'm not familiar with ATL, but if it involves dynamically=20 > loading the qpid > dlls, not linking with them, it may be a previously reported=20 > problem related > to tss allocations. From the symptoms, it sounds like it is,=20 > but I'm not > familiar enough with ATL to know for sure. Is that what happens? >=20 > If it is, some tss changes are needed, or you can try to=20 > change the way you > build your project. >=20 > -Steve >=20 >=20 > --------------------------------------------------------------------- > Apache Qpid - AMQP Messaging Implementation > Project: http://qpid.apache.org > Use/Interact: mailto:users-subscribe@qpid.apache.org > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 8.5.329 / Virus Database: 270.12.34/2122 - Release=20 > Date: 05/20/09 > 06:22:00 >=20 >=20 > --------------------------------------------------------------------- > Apache Qpid - AMQP Messaging Implementation > Project: http://qpid.apache.org > Use/Interact: mailto:users-subscribe@qpid.apache.org >=20 >=20 --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:users-subscribe@qpid.apache.org