public uint ToUInt(string s, ref bool ok)
{
StackItem[] stack = new StackItem[3];
#if DEBUG
stack[1].s_class = (IntPtr) DebugGCHandle.Alloc(s);
#else
stack[1].s_class = (IntPtr) GCHandle.Alloc(s);
#endif
stack[2].s_bool = ok;
interceptor.Invoke("toUInt$$", "toUInt(const QString&, bool*) const", stack);
#if DEBUG
DebugGCHandle.Free((GCHandle) stack[1].s_class);
#else
((GCHandle) stack[1].s_class).Free();
#endif
ok = stack[2].s_bool;
return stack[0].s_uint;
}