Post

Replies

Boosts

Views

Activity

Crash at _nextEventMatchingEventMask
I got a crash like this: Exception Type: EXC_BAD_ACCESS Exception Codes: KERN_INVALID_ADDRESS at 0x41af37daf2000000 Triggered by Thread: 0 Thread 0 Crashed: 0 libobjc.A.dylib 0x0000000194cc0144 objc_release_x0 + 8 1 AppKit 0x00000001984b77a8 -[NSEvent dealloc] + 84 2 AppKit 0x000000019835ee5c -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1552 my code like this while (1) { @autoreleasepool { NSEvent* event = [NSApp nextEventMatchingMask:NSEventMaskAny untilDate:NSDate.distantFuture inMode:NSDefaultRunLoopMode dequeue:YES]; if (event) { [NSApp sendEvent:event]; } } } can anyone tell me how to debug this:
4
0
234
Aug ’24