Path: utzoo!dptcdc!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!shelby!polya!ali From: ali@polya.Stanford.EDU (Ali T. Ozer) Newsgroups: comp.sys.next Subject: Re: Defaults Message-ID: <8494@polya.Stanford.EDU> Date: 16 Apr 89 16:33:31 GMT References: <10013@orstcs.CS.ORST.EDU> Sender: Ali T. Ozer Reply-To: aozer@NeXT.com (Ali Ozer) Organization: . Lines: 19 In article <10013@orstcs.CS.ORST.EDU> Bryce Jasmer writes: > > static NXDefaultsVector myDefaults = { > {"Misc", "1234"} > }; > > NXRegisterDefaults("MyApp", myDefaults); > >Using the debugger, I found that the segmentation fault happens within a >"strcmp" in the source file defaults.c ... Looking at the above code, there's no way for NXRegisterDefaults to know when to stop reading your array. You need to put a NULL at the end of your list as a default name: {"Misc", "1234"}, {NULL} Ali Ozer, NeXT Developer Support aozer@NeXT.com