[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Pietro Abate <Pietro.Abate@a...> |
| Subject: | simulate class destructor |
hi all, Is it possible to simulate class destructor, that is convince Gc to call a method before deallocating the object ? I'd like to take a closer look at what's happening in my program to check if everything works at it should... I've a NodeCounter module with a counter that increase every time I create a new object, now I'd like to decrement the counter when the object is de-allocated. Impossible ? :) p -- ++ Blog: http://blog.rsise.anu.edu.au/?q=pietro ++ ++ "All great truths begin as blasphemies." -George Bernard Shaw ++ Please avoid sending me Word or PowerPoint attachments. See http://www.fsf.org/philosophy/no-word-attachments.html