|
Boost Users : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-06-18 06:38:18
Your problem was that the EXE was using the single-threaded runtime, but the
DLL has been set to multithreaded. The mutex lock in the DLL was spinning
forever.
When I set both to multi-threaded, it works, even with different heaps.
Interesting issue. It can be made to work even in this case but this will
cost performance.
----- Original Message -----
From: <corno_at_[hidden]>
To: "Peter Dimov" <pdimov_at_[hidden]>
Sent: Tuesday, June 18, 2002 13:52
Subject: Re: [Boost-Users] MS VS 6: passing boost::shared_ptr<T> to a dll
function
> hmmmm....
> 2nd try :)
>
> > Did you forget the attachment? ;-)
> >
> > ----- Original Message -----
> > From: <corno_at_[hidden]>
> > To: <pdimov_at_[hidden]>
> > Sent: Tuesday, June 18, 2002 0:39
> > Subject: Re: [Boost-Users] MS VS 6: passing boost::shared_ptr<T> to a
dll
> > function
> >
> >
> > >
> > > > > Thanx Craig, that turned out to be the problem for VC++ as well.
> > > >
> > > > Yep, but shared_ptr is supposed to work in this case, in theory. ;-)
> > I'll
> > > > look into this. Any more information that can help me find the
problem?
> > > >
> > >
> > > Peter,
> > >
> > > I made 2 small projects that illustrate the problem. (change the path
to
> > the
> > > boost lib ofcourse)
> > > It can very likely be that I am doing something terribly stupid :) but
> > anyways,
> > > here's what I see;
> > >
> > > If I build and run it with a single memory manager I see output for
all 4
> > steps.
> > > If I build and run it with separated memory managers I see output for
> > step
> > 1
> > > and 2 only and then it hangs.
> > >
> > > Corno
> > >
> > >
> >
> >
>
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net