• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSPortTimeoutException Pb
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 !


  • Prev by Date: Re: Sherlock and my Sad Source Search Story
  • Next by Date: Attaching windows
  • Previous by thread: button target action getting called on nib instantiation, why?
  • Next by thread: Attaching windows
  • Index(es):
    • Date
    • Thread