• 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
NSThread Crashes on Intel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSThread Crashes on Intel


  • Subject: NSThread Crashes on Intel
  • From: "Mr. Gecko" <email@hidden>
  • Date: Thu, 6 Nov 2008 17:25:20 -0600

Hello I am working on a program that uses threads to add some multi tasking function to it and it works perfect on my PPC machine, but on every intel based machine that my friends use crashes. the crash report says that it is with this function below
+ (void)connectWithPorts:(NSArray *)portArray {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSConnection *connectionToController = [NSConnection connectionWithReceivePort:[portArray objectAtIndex:0] sendPort: [portArray objectAtIndex:1]];
Recover *serverObject = [[Recover alloc] initWithProxy: [connectionToController rootProxy]];

[(id)[connectionToController rootProxy] setServer:serverObject];


[serverObject release];

[[NSRunLoop currentRunLoop] run];

[pool release];
}
which is what I am using to set up the thread. I can't see a bug in there, but it crashes.


Things I have tried,
I tried reading the sample thread example on Apples site.
I tried following the example here http://lachand.free.fr/cocoa/Threads.html .
I tried writing my own from those examples with only the things needed for it to work.
and that is it.


Hope you can help me maybe point me to a good tutorial.

Thanks,
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


  • Prev by Date: Re: A finished moving notification for a window?
  • Next by Date: How to get a list of all known file types?
  • Previous by thread: Re: BonjourSample from Hillegass (Advanced Mac OS X Programming)
  • Next by thread: Re: NSThread Crashes on Intel
  • Index(es):
    • Date
    • Thread