From 7d9437c8a5fed2d03c22454f643b4bf5598f2d9e Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Sat, 26 Feb 2005 04:57:48 +0000 Subject: - garbage collection at module scope - better handling of bang messages better error reporting svn path=/trunk/; revision=2583 --- externals/grill/py/source/pyext.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'externals/grill/py/source/pyext.cpp') diff --git a/externals/grill/py/source/pyext.cpp b/externals/grill/py/source/pyext.cpp index de208aac..5a870d10 100644 --- a/externals/grill/py/source/pyext.cpp +++ b/externals/grill/py/source/pyext.cpp @@ -244,7 +244,9 @@ void pyext::DoExit() Py_DECREF(pyobj); // opposite of SetClssMeth } - if(gcrun) collect(); + if(gcrun && !collect()) { + post("%s - Unloading: Object is still referenced",thisName()); + } } void pyext::InitInOut(int &inl,int &outl) -- cgit v1.2.1