qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Huston" <shus...@riverace.com>
Subject RE: ATL Project
Date Thu, 21 May 2009 18:58:52 GMT
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] 
> Inviato: giovedì 21 maggio 2009 02:24
> A: users@qpid.apache.org
> Oggetto: RE: ATL Project
> 
> Hi Mariano,
> 
> > Thanks for your prompt answer,
> > I've downloaded your recommended version (0.5 RC4) kit but nothing
> is
> > changed ...
> 
> Hmmm...
> 
> > If I compile in Win32 Console Project it works all fine ... 
> > But, the same
> > code, in ATL Project give me everytime the same error, in 
> debug mode 
> > it jumps in the catch(...) statement and the error object 
> show me the 
> > "bad allocation" message.
> 
> Ok, I think I know what the problem may be.
> 
> > My need is to obtain an AMQP COM+ Component that is usable in ASP 
> > enviroment like:
> > 
> > ...
> > Set conn = CreateObject("MyComponent.conn")
> > conn.open(host,port,user,password)
> > ...
> > 
> > To reach this goal I thing I need to incapsulate the QPID 
> in one ATL 
> > Project ... Right?
> 
> I'm not familiar with ATL, but if it involves dynamically 
> loading the qpid
> dlls, not linking with them, it may be a previously reported 
> problem related
> to tss allocations. From the symptoms, it sounds like it is, 
> but I'm not
> familiar enough with ATL to know for sure. Is that what happens?
> 
> If it is, some tss changes are needed, or you can try to 
> change the way you
> build your project.
> 
> -Steve
> 
> 
>
---------------------------------------------------------------------
> 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 
> Date: 05/20/09
> 06:22:00
> 
> 
>
---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
> 
> 


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Mime
View raw message