[Kde-bindings] Qyoto - strange QValidator behavior

Pedro Mello pedro.mello at gmail.com
Thu Jul 1 15:02:11 UTC 2010


I've getting a ArgumentException when trying to implement a custom
validator extending the QValidator class. The code is here:
http://pastebin.com/DENkTf1J and here goes the exception:

failed to convert parameters
System.ArgumentException
  at System.Reflection.MonoMethod.Invoke (System.Object obj,
BindingFlags invokeAttr, System.Reflection.Binder binder,
System.Object[] parameters, System.Globalization.CultureInfo culture)
[0x00102] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/corlib/System.Reflection/MonoMethod.cs:229
  at System.Reflection.MethodBase.Invoke (System.Object obj,
System.Object[] parameters) [0x00000] in
/usr/src/packages/BUILD/mono-2.6.4/mcs/class/corlib/System.Reflection/MethodBase.cs:113
  at Qyoto.SmokeInvocation.InvokeMethod (IntPtr instanceHandle, IntPtr
methodHandle, IntPtr stack) [0x00000] in <filename unknown>:0
  at (wrapper native-to-managed) Qyoto.SmokeInvocation:InvokeMethod
(intptr,intptr,intptr)
  at (wrapper managed-to-native) Qyoto.SmokeInvocation:CallSmokeMethod
(intptr,int,intptr,intptr,int)
  at Qyoto.SmokeInvocation.Invoke (System.String mungedName,
System.String signature, System.Type returnType, System.Object[] args)
[0x00000] in <filename unknown>:0
  at Qyoto.QApplication.Exec () [0x00000] in <filename unknown>:0
  at App.MyClass..ctor (System.String[] args) [0x0027c] in
/home/pedro/Projects/novvs/client/App/Main.cs:96
  at App.MyClass.Main (System.String[] args) [0x00000] in
/home/pedro/Projects/novvs/client/App/Main.cs:110
Unhandled Exception: System.ArgumentException: GCHandle value belongs
to a different domain
  at System.Runtime.InteropServices.GCHandle.op_Explicit (IntPtr
value) [0x0003d] in
/usr/src/packages/BUILD/mono-2.6.4/mcs/class/corlib/System.Runtime.InteropServices/GCHandle.cs:129
  at Qyoto.SmokeInvocation.InvokeMethod (IntPtr instanceHandle, IntPtr
methodHandle, IntPtr stack) [0x00000] in <filename unknown>:0
  at (wrapper native-to-managed) Qyoto.SmokeInvocation:InvokeMethod
(intptr,intptr,intptr)
  at (wrapper managed-to-native) Qyoto.SmokeInvocation:CallSmokeMethod
(intptr,int,intptr,intptr,int)
  at Qyoto.SmokeInvocation.Invoke (System.String mungedName,
System.String signature, System.Type returnType, System.Object[] args)
[0x00000] in <filename unknown>:0
  at Qyoto.QMessageBox.Critical (Qyoto.QWidget parent, System.String
title, System.String text) [0x00000] in <filename unknown>:0
  at App.MyClass.Main (System.String[] args) [0x00033] in
/home/pedro/Projects/novvs/client/App/Main.cs:117



More information about the Kde-bindings mailing list