NSConnection Proxy Crash
NSConnection Proxy Crash
- Subject: NSConnection Proxy Crash
- From: "Mr. Gecko" <email@hidden>
- Date: Thu, 9 Jul 2009 23:56:22 -0500
Hello, I'm having a problem after I send a message to a proxy
application through NSConnection.
my code is
daemonServer = [[NSConnection
connectionWithRegisteredName:@"MGMDaemon" host:nil] retain];
if (daemonServer==nil) {
NSLog(@"Couldn't connect to daemon server.");
return;
}
MGMDaemon = [[daemonServer rootProxy] retain];
if (MGMDaemon==nil) {
NSLog(@"Couldn't set proxy with daemon server.");
[daemonServer release];
daemonServer = nil;
return;
}
[MGMDaemon setProtocolForProxy:@protocol(MGMDaemonProtocol)];
[MGMDaemon runTest:@"Test"];
and my crash report says
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000c0000023
Crashed Thread: 0
Thread 0 Crashed:
0 libobjc.A.dylib 0x94738688 objc_msgSend + 24
1 com.apple.Foundation 0x95b9ac1a -[NSConnection
handlePortCoder:] + 1178
2 com.apple.Foundation 0x95b9a72e -[NSConcretePortCoder
dispatch] + 142
3 com.apple.Foundation 0x95b99e93 __NSFireMachPort + 339
4 com.apple.CoreFoundation 0x94f331c5 __CFMachPortPerform + 117
5 com.apple.CoreFoundation 0x94f57888 CFRunLoopRunSpecific +
3896
6 com.apple.CoreFoundation 0x94f57c78 CFRunLoopRunInMode + 88
7 com.apple.Foundation 0x95b943e5 -[NSRunLoop(NSRunLoop)
runMode:beforeDate:] + 213
8 com.apple.Foundation 0x95ba0504 -[NSRunLoop(NSRunLoop)
run] + 84
9 itunesmenudaemon 0x000022e7 main + 320 (daemon.m:61)
10 itunesmenudaemon 0x00002056 start + 54
Thread 0 crashed with X86 Thread State (32-bit):
eax: 0x00104370 ebx: 0x95b5b2bb ecx: 0x947d4334 edx: 0xc0000003
edi: 0x00000004 esi: 0x95d46874 ebp: 0xbffff508 esp: 0xbffff398
ss: 0x0000001f efl: 0x00010202 eip: 0x94738688 cs: 0x00000017
ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037
cr2: 0xc0000023
I can't seem to find the problem, the command gets executed and then
it crashes.
Help please?
Mr. Gecko
_______________________________________________
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