• 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
Help with this crashing method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help with this crashing method


  • Subject: Help with this crashing method
  • From: Andre Masse <email@hidden>
  • Date: Mon, 10 Nov 2008 00:03:45 -0500

Hi,

I've been struggling with this method for the last couple of hours. I just can't see where the problem is. I get the following error which I suppose indicate that I've released something I shouldn't... Since I'm not releasing anything, I wonder what I'm doing wrong. Must be some stupid thing but I just can't see it...

The Debugger has exited due to signal 10 (SIGBUS).The Debugger has exited due to signal 10 (SIGBUS).

Stepping with the debugger shows that the crash happends on the last line. Obviously, commenting it out prevent the crash.


+ (void) initialize
{
NSMutableDictionary *defaultValues = [NSMutableDictionary dictionary];

NSMutableDictionary *userDict = [NSMutableDictionary dictionary];

[userDict setObject:[NSImage imageNamed:NSImageNameUser] forKey:@"userImage"];
[userDict setObject:NSFullUserName() forKey:@"userFullName"];
[userDict setObject:NSUserName() forKey:@"loginName"];
[userDict setObject:[NSString stringWithString:@""] forKey:@"loginPassword"];
[userDict setObject:[NSString stringWithString:@"localhost"] forKey:@"loginHost"];
[userDict setObject:[NSString stringWithString:@"tdhsql"] forKey:@"loginDatabaseName"];
[userDict setObject:[NSString stringWithString:@"5432"] forKey:@"loginPort"];


NSMutableArray *applicationUsers = [NSMutableArray arrayWithObject:userDict];

[defaultValues setObject:applicationUsers forKey:@"applicationUsers"];

// register it
[[NSUserDefaults standardUserDefaults] registerDefaults:defaultValues]; <--- crash here

}


Any help someone so I can go to sleep :-)


Thanks,

Andre Masse
_______________________________________________

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


  • Follow-Ups:
    • Re: Help with this crashing method
      • From: Roland King <email@hidden>
    • Re: Help with this crashing method
      • From: Steven Riggs <email@hidden>
    • Re: Help with this crashing method
      • From: Bill Bumgarner <email@hidden>
    • Re: Help with this crashing method
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Re: Inviting to comment on Cocoa categories
  • Next by Date: Re: Help with this crashing method
  • Previous by thread: Subject: Re: Core Data entity fetching by date
  • Next by thread: Re: Help with this crashing method
  • Index(es):
    • Date
    • Thread