[Kde-bindings] KDE/kdebindings

Arno Rehn arno at arnorehn.de
Sat Aug 11 18:03:17 UTC 2007


Am Samstag 11 August 2007 18:55:45 schrieb Arno Rehn:
> Am Samstag 11 August 2007 18:51:00 schrieb Richard Dale:
> > On Saturday 11 August 2007, Arno Rehn wrote:
> > > -                       ((GCHandle) handle).Free();
> > > +                       if (handle != IntPtr.Zero) ((GCHandle)
> > > handle).Free();
> >
> > Is this a symptom of a bug somewhere else that we need to fix? When does
> > this occur?
>
> I wrote a small test app where a signal which takes a QUrl was connected to
> a slot which also takes a QUrl. It worked well, but after the slot was
> called a few times mono crashed stating that a GCHandle was zero when it
> tried to free it. It hasn't happend a second time since then, though. Maybe
> there's a small bug in the slot invocation thing.
Ok, just got it again and tracked it down to the QString marshaller. I tried 
to set a QTextEdit.Html property to 'null'.  The marshaller correctly returns 
a QString::null, but it still tries to free the GCHandle, which is then zero.

-- 
Arno Rehn
arno at arnorehn.de



More information about the Kde-bindings mailing list