[MonoDevelop] Error in qyoto app

Sharique uddin Ahmed Farooqui safknw at gmail.com
Sun Nov 29 10:51:19 EST 2009


Hi,

I'm getting memory violation error in a qyoto application when I
calling slot. here is the code

Connect(btnCreatePlt, SIGNAL("clicked()"), this, SLOT("CreatePlt()"));

here is the code of slot
[Q_SLOT]
		public void CreatePlt()
		{
            some code;
		}

here is exception details in VCS Express (monodevelop and sharp
develop gives much shorter details on win7)
		
		System.Reflection.TargetInvocationException was unhandled
  Message="Exception has been thrown by the target of an invocation."
  Source="mscorlib"
  StackTrace:
       at System.RuntimeMethodHandle._InvokeMethodFast(Object target,
Object[] arguments, SignatureStruct& sig, MethodAttributes
methodAttributes, RuntimeTypeHandle typeOwner)
       at System.RuntimeMethodHandle.InvokeMethodFast(Object target,
Object[] arguments, Signature sig, MethodAttributes methodAttributes,
RuntimeTypeHandle typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj,
BindingFlags invokeAttr, Binder binder, Object[] parameters,
CultureInfo culture, Boolean skipVisibilityChecks)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj,
BindingFlags invokeAttr, Binder binder, Object[] parameters,
CultureInfo culture)
       at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
       at Qyoto.SmokeInvocation.InvokeCustomSlot(IntPtr obj, String
slotname, IntPtr stack, IntPtr ret)
       at Qyoto.SmokeInvocation.CallSmokeMethod(IntPtr smoke, Int32
methodId, IntPtr target, IntPtr sp, Int32 items)
       at Qyoto.SmokeInvocation.Invoke(String mungedName, String
signature, Type returnType, Object[] args)
       at Qyoto.QApplication.Exec()
       at QtCm.Program.Main(String[] args) in
F:\Sharique\Projects\QtCm\QtCm\Program.cs:line 24
       at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile,
Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: System.AccessViolationException
       Message="Attempted to read or write protected memory. This is
often an indication that other memory is corrupt."
       Source="qt-dotnet"
       StackTrace:
            at Qyoto.SmokeMarshallers.StringFromQString(IntPtr ptr)
            at Qyoto.SmokeMarshallers.IntPtrFromQString(IntPtr ptr)
            at Qyoto.SmokeInvocation.CallSmokeMethod(IntPtr smoke,
Int32 methodId, IntPtr target, IntPtr sp, Int32 items)
            at Qyoto.SmokeInvocation.Invoke(String mungedName, String
signature, Type returnType, Object[] args)
            at Qyoto.QLineEdit.get_Text()
            at QtCm.MainForm.CreatePlt() in
F:\Sharique\Projects\QtCm\QtCm\MainForm.cs:line 91
       InnerException:


-- 
Sharique uddin Ahmed Farooqui
(C++/C# Developer, IT Consultant)
http://safknw.blogspot.com/
"Peace" is the Ultimate thing we want.


More information about the Monodevelop-list mailing list