From 996d5f6c4e21d3d8688674f20e6f4318e3ace607 Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Sat, 2 Jan 2010 22:13:15 +0000 Subject: Cleaned up lifecycle handling of objects that hold library and file resources. Fixed pool stack initialization concurrency issue. Re-enabled watch strings to help watch compound values in debugger. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@895305 13f79535-47bb-0310-9956-ffa450edef68 --- sca-cpp/trunk/modules/server/mod-cpp.hpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'sca-cpp/trunk/modules/server/mod-cpp.hpp') diff --git a/sca-cpp/trunk/modules/server/mod-cpp.hpp b/sca-cpp/trunk/modules/server/mod-cpp.hpp index 2cf2e540d6..17d44e1428 100644 --- a/sca-cpp/trunk/modules/server/mod-cpp.hpp +++ b/sca-cpp/trunk/modules/server/mod-cpp.hpp @@ -65,14 +65,11 @@ struct evalImplementation { * Read a C++ component implementation. */ const failable&)> > readImplementation(const string& path, const list& px) { - const failable ilib(dynlib(path + dynlibExt)); - if (!hasContent(ilib)) - return mkfailure&)> >(reason(ilib)); - - const failable&)> > impl(dynlambda&)>("eval", content(ilib))); + const lib ilib(*(new (gc_new()) lib(path + dynlibExt))); + const failable&)> > impl(dynlambda&)>("eval", ilib)); if (!hasContent(impl)) return impl; - return lambda&)>(evalImplementation(content(ilib), content(impl), px)); + return lambda&)>(evalImplementation(ilib, content(impl), px)); } } -- cgit v1.2.3