Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!pacbell.com!ucsd!sdcc6!ishin!mattson From: mattson@ishin.ucsd.edu (Jim Mattson) Newsgroups: comp.sys.next Subject: referenceOpen("Webster-Thesaurus") problems (rel. 2.0) Message-ID: Date: 7 Feb 91 17:26:16 GMT Sender: news@sdcc6.ucsd.edu Distribution: na Lines: 44 Nntp-Posting-Host: ishin.ucsd.edu The webster(3) man page claims that referenceOpen will currently accept one of two arguments: "Webster-Dictionary" and "Webster-Thesaurus". Using "Webster-Dictionary" I have successfully been able to open the dictionary and then retrieve records from it. However, when I call referenceOpen("Webster-Thesaurus") gdb shows: Program generated(1): Memory access exception on address 0x0 (protection failure). 0x5006ecc in strcmp () (gdb) where #0 0x5006ecc in strcmp () #1 0x6290 in referenceOpen (bookName=(char *) 0x1400c "Webster-Thesaurus") (webster.m line 1475) #2 0x36b2 in main () (lookup.m line 9) The program is very simple (modified from the example in webster(3)): #include main() { ReferenceBook *book; Definition *d; int exact = 1; book = referenceOpen("Webster-Thesaurus"); dictionaryFoldSenses = 80; if(d = getDefinition("amphora", book, exact)) { putDefinition(d, 0); printf("\n"); freeDefinition(d); } } Has anyone else seen this problem? Is there a way around it? --jim -- Internet: jmattson@ucsd.edu Bitnet: jmattson@ucsd UUCP: {ucbvax|rutgers|bellcore}!ucsd!jmattson