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:
To: Sent: Tuesday, June 18, 2002 0:39 Subject: Re: [Boost-Users] MS VS 6: passing boost::shared_ptr<T> to a
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
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:
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
participants (1)
-
Peter Dimov