aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/py/source/pyext.cpp
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2005-02-26 04:57:48 +0000
committerThomas Grill <xovo@users.sourceforge.net>2005-02-26 04:57:48 +0000
commit7d9437c8a5fed2d03c22454f643b4bf5598f2d9e (patch)
tree27301c0c09613cb9fc801a0a19a2f98354f5249a /externals/grill/py/source/pyext.cpp
parent327c548eb8237c5dd1c6f9eca4fe7787e03506b1 (diff)
- garbage collection at module scope
- better handling of bang messages better error reporting svn path=/trunk/; revision=2583
Diffstat (limited to 'externals/grill/py/source/pyext.cpp')
-rw-r--r--externals/grill/py/source/pyext.cpp4
1 files changed, 3 insertions, 1 deletions
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)