NSPortTimeoutException Pb
NSPortTimeoutException Pb
- Subject: NSPortTimeoutException Pb
- From: kubernan <email@hidden>
- Date: Fri, 10 Aug 2001 12:58:46 +0200
Bonjour,
I want to set up a timeout (for the reply) in my Distributed Object
connection.
It's the first time i use NSNotificationCenter and i have pbs with
raising
NSPortTimeoutException :
Here is the log :
*** malloc[996]: Deallocation of a pointer not malloced: 0x13b3f80; This
could be a double free(), or free() called with the middle of an
allocated block; Try setting environment variable MallocHelp to see
tools to help debug
Aug 10 12:06:12 Interactive Braininabox 1.8[996] An uncaught exception
was raised
Aug 10 12:06:12 Interactive Braininabox 1.8[996] connection timeout: did
not receive reply
Aug 10 12:06:12 Interactive Braininabox 1.8[996] *** Uncaught exception:
<NSPortTimeoutException> connection timeout: did not receive reply
Here is the part of my source code :
-(void)ThreadTest:(bycopy NSMutableDictionary*)data_for_server
{
// ..some code
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init ];
serverConn = [NSConnection
connectionWithRegisteredName:@"ThreadedNeuralNetwork" host:nil];
theProxy = [[serverConn rootProxy] retain];
[[NSNotificationCenter defaultCenter] addObserver:theProxy
selector:@selector(connectionTimeOut:)
name:NSPortTimeoutException
object:nil]; // tried with serverConn Object
[serverConn enableMultipleThreads];
[serverConn setReplyTimeout:timeout];
threadedNeuralNetwork = [[[serverConn rootProxy] retain] autorelease];
reply = [[[threadedNeuralNetwork network_process:data_for_server]
retain] autorelease]; // reply is NSMutableDic....
[pool release];
}
-(void)connectionTimeOut
{
NSBeep();
}
- What i don't understand is the "*** malloc[996]: Deallocation of
a ...". I tried to add autorelease of all my objects in this part
of source code, but .. have the same pb.
- What i don't understand is why i'm not able to hear the Beep !