From: "A. Sinan Unur" Newsgroups: comp.os.msdos.djgpp Subject: Re: HELP! Weird bugs in code Date: Sun, 14 Sep 1997 18:36:01 -0400 Organization: Cornell University http://www.cornell.edu Lines: 16 Sender: asu1 AT cornell DOT edu (Verified) Message-ID: <341C66D1.EA76DBC1@cornell.edu> References: <341B2A70 DOT 1223 AT cam DOT org> NNTP-Posting-Host: cu-dialup-0001.cit.cornell.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Vic wrote: > int j; > for(j=0;j { > spantable[j]= NULL; > spantable[j]->left= NULL; <--it crahes here! > spantable[j]->right= NULL; > > > does anyone know what I'm doing wrong?? you are dereferencing a NULL pointer. the line which you point to is: NULL->left = NULL -- Sinan