Re: changing the UNO dispose/disposing() protocol ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Noel,

On Tue, May 30, 2023 at 12:29:40PM +0200, Noel Grandin <noelgrandin@xxxxxxxxx> wrote:
> > Do you have a context for this? I assume you dived into some actual
> > problem and then this came up?
> >
> I am specifically looking at cleaning up memory leaks, and a lot of those
> have to do with cycles forming in the UNO object graph.
> A recurrent problem in cleaning this up is when something throws
> DisposedException and short-circuits the dispose() logic in caller code.

I see. And also noticed in the meantime that the VclPtr dispose also
just does nothing on multiple disposes, so this sounds reasonable to me,
improves consistency.

Regards,

Miklos



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux