Re: Weird crash in sendEvent - right click vs control click
Re: Weird crash in sendEvent - right click vs control click
- Subject: Re: Weird crash in sendEvent - right click vs control click
- From: Brett Powley <email@hidden>
- Date: Wed, 14 May 2008 14:52:19 +1000
Hi Andrew,
I did think about that.
I've poked around in Contextual Menu Items and Input Methods folders
and can't find anything there. I don't have LCC installed, and I
avoid installing anything that uses APE. I have just had a quick
check and can't see any evidence that APE has been installed without
my knowledge.
The odd thing is that the client I'm writing this for is seeing the
same crash (of course it's possible that both of us have the same hack
installed somewhere).
I should add that the stack trace is actually even shorter than the
one I pasted before -- I had overridden the sendEvent: method to see
if I could catch the crash:
objc_msgSend
-[NSWindow sendEvent:]
-[NSApplication sendEvent:]
-[NSApplication run]
NSApplicationMain
main
i.e. my code hasn't even been called yet (unless of course
objc_msgSend is trying to dispatch something to one of my objects, in
which case I'd like to know what it is)
Cheers,
Brett
On 14/05/2008, at 2:33 PM, Andrew Merenbach wrote:
Hi, Brett,
Is it possible that you have any haxies, or any Input Managers, of
any sort installed? Logitech Control Center, for instance, or
perhaps APE? That's the only thing that I could think of that might
be yielding such a crash.
Cheers,
Andrew
On May 13, 2008, at 9:21 PM, Brett Powley wrote:
Hi,
I'm having a rather weird crash in a Cocoa application. If I
control-click on a window, my application crashes instantly. If I
right click, it doesn't (and indeed my rightMouse method is
eventually called as I want it to be).
I've tried enabling zombies, but that doesn't catch anything.
The stack trace is rather short:
objc_msgSend
-[NSWindow sendEvent:]
-[MyWindow sendEvent:]
-[NSApplication sendEvent:]
-[MyApplication sendEvent:]
-[NSApplication run]
NSApplicationMain
main
That leads to the questions:
(1) What's the difference between a control click and a right click
that would lead the former to cause a crash and the latter not to?
(2) What's likely to be the cause of a crash in NSWindow sendEvent: ?
Thanks,
Brett
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden