This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Qyoto: Crash on Event handling

Tags: None
(comma "," separated)
indspaudio
Registered Member
Posts
3
Karma
0

Qyoto: Crash on Event handling

Fri Jun 07, 2013 8:38 am
I developing an application in qyoto on Ubuntu 12.04

I have a custom widget which have a mouse handler. and based on the mouse input I draw the widget.

Code: Select all
protected override void OnMouseMoveEvent (QMouseEvent arg1)
{
       //some random calculations
       Update();
}


When moving mouse slowly, it works. But when i move mouse quickly, it crashes at random locations.

One such stack trace is as follows
at (wrapper managed-to-native) QtCore.SmokeInvocation.CallSmokeMethod (intptr,int,intptr,intptr,int,intptr) <IL 0x0002a, 0xffffffff>
at QtCore.SmokeInvocation.Invoke (string,string,System.Type,bool,object[]) <IL 0x00171, 0x002fb>
at QtGui.QPainter.set_Brush (QtGui.QBrush) <IL 0x00034, 0x0007b>
at Custom.CWidget.OnPaintEvent (QtGui.QPaintEvent) [0x0003a] in 9 fileName.cs:33


What could be wrong?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Qyoto: Crash on Event handling

Sat Jun 08, 2013 10:18 am
Could you please post the full backtrace, and the content of the OnMouseMoveEvent function?
As the last function invoked from your code is QtGui.QPainter.set_Brush, I would suggest making sure the various variables used here are valid as a first step.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot]