Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-dev] Track SWT allocations

Indeed this should be enabled by default, really useful!

Am 15.04.21 um 20:17 schrieb Wim Jongman:
Hi Christophe,


This is triggered when the widget is garbage collected (but was not disposed). Just set the property as described in the N&N. It works really nice.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=569752 <https://bugs.eclipse.org/bugs/show_bug.cgi?id=569752>

Cheers,

Wim


On Thu, Apr 15, 2021 at 5:16 PM Christoph Läubrich <laeubi@xxxxxxxxxxxxxx <mailto:laeubi@xxxxxxxxxxxxxx>> wrote:

    That's it, thanks Laurent.

    is there any description how this works?

    I put for example in one of my views:

             new Font(parent.getDisplay(), parent.getFont().getFontData());

    and get "not properly disposed" but at a time where the view is already
    opened, so is this triggered by garbage collection somehow? Or if the
    parent is disposed?

    Am 15.04.21 um 16:51 schrieb Laurent Caron:
     > Hi Christoph,
     >
     > I think it is |org.eclipse.swt.graphics.Resource.reportNonDisposed|
     > (see https://www.eclipse.org/eclipse/news/4.19/platform_isv.php
    <https://www.eclipse.org/eclipse/news/4.19/platform_isv.php>
     > <https://www.eclipse.org/eclipse/news/4.19/platform_isv.php
    <https://www.eclipse.org/eclipse/news/4.19/platform_isv.php>>)
     >
     > Regards,
     >
     > Laurent
     >
     > Le jeu. 15 avr. 2021 à 16:48, Christoph Läubrich
    <laeubi@xxxxxxxxxxxxxx <mailto:laeubi@xxxxxxxxxxxxxx>
     > <mailto:laeubi@xxxxxxxxxxxxxx <mailto:laeubi@xxxxxxxxxxxxxx>>> a
    écrit :
     >
     >     I think I read in recent release notes that there is a new
     >     system-property to allow for tracking of resource allocation (or
     >     missing
     >     de-allocations?) but can't find it anymore. Any tips?
     >     _______________________________________________
     >     platform-dev mailing list
     > platform-dev@xxxxxxxxxxx <mailto:platform-dev@xxxxxxxxxxx>
    <mailto:platform-dev@xxxxxxxxxxx <mailto:platform-dev@xxxxxxxxxxx>>
     >     To unsubscribe from this list, visit
     > https://www.eclipse.org/mailman/listinfo/platform-dev
    <https://www.eclipse.org/mailman/listinfo/platform-dev>
     >     <https://www.eclipse.org/mailman/listinfo/platform-dev
    <https://www.eclipse.org/mailman/listinfo/platform-dev>>
     >
     >
     > _______________________________________________
     > platform-dev mailing list
     > platform-dev@xxxxxxxxxxx <mailto:platform-dev@xxxxxxxxxxx>
     > To unsubscribe from this list, visit
    https://www.eclipse.org/mailman/listinfo/platform-dev
    <https://www.eclipse.org/mailman/listinfo/platform-dev>
     >
    _______________________________________________
    platform-dev mailing list
    platform-dev@xxxxxxxxxxx <mailto:platform-dev@xxxxxxxxxxx>
    To unsubscribe from this list, visit
    https://www.eclipse.org/mailman/listinfo/platform-dev
    <https://www.eclipse.org/mailman/listinfo/platform-dev>


_______________________________________________
platform-dev mailing list
platform-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/platform-dev



Back to the top