Re: OOP leaking with registered object

Holger Hans Peter Freyther <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.gnu.general
Message-ID <[email protected]>
On Fri, Apr 03, 2015 at 11:36:55PM +0200, Roland Plüss wrote:

> The application holds C++ resources by reference counting outside
> Smalltalk. The resources have to be cleaned up before the Smalltalk
> module is shut down. This is because the engine keeps running valid with
> the scripting module shut down (so you can start/stop it multiple
> times). Without proper finalization the reference counts are off leading
> to random crashes somewhere down the line.

In regard to leaks "allOwners" can be of help. The tooling is a
bit difficult but it can be interesting to see it.

Finalization/Shutdown. You should terminate all processes to some
degree and wait for the "finalization listener" to have executed
and shutdown everything.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.