aboutsummaryrefslogtreecommitdiff
path: root/src/cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cache.h')
-rw-r--r--src/cache.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cache.h b/src/cache.h
index 4ae1aa8..f36c29b 100644
--- a/src/cache.h
+++ b/src/cache.h
@@ -165,9 +165,9 @@ namespace Bu
165 { 165 {
166 if( i.getValue().iRefs > 0 ) 166 if( i.getValue().iRefs > 0 )
167 { 167 {
168 printf("Error? iRefs=%d for key ", i.getValue().iRefs ); 168 // TODO: Throw an error in this case? iRefs != 0 for an
169 __tracer_format( i.getKey() ); 169 // object when the Cache is destroyed.
170 printf("!\n"); 170 throw Bu::ExceptionBase("iRefs not zero.");
171 } 171 }
172 pCalc->onUnload( 172 pCalc->onUnload(
173 i.getValue().pData, 173 i.getValue().pData,