[Kde-bindings] [Bug 171586] New: Qyoto delegates can be prematurely collected

Ilmar Kruis ikruis at gmail.com
Wed Sep 24 11:27:49 UTC 2008


http://bugs.kde.org/show_bug.cgi?id=171586

           Summary: Qyoto delegates can be prematurely collected
           Product: bindings
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kde-bindings at kde.org
        ReportedBy: ikruis at gmail.com


Version:            (using Devel)
Installed from:    Compiled sources

The delegates that are installed in SmokeMarshallers.cs are immediatly open for
garbage collection, which will result in an exception as soon as Smoke tries to
call one of them. Currently the Mono GC does not collect them, but according to
spec it's allowed to and the Microsoft GC already does so. For my Windows build
of Qyoto I fixed this by creating static delegate fields for all callbacks, see
patch on http://imaginary-project.net/wiki/building_qyoto_for_windows . Since
the Mono people are working on a new GC, this might introduce the same problem
on Mono.


-- 
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Kde-bindings mailing list