cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/14/23:17:20

From: "A. Sinan Unur" <sinan DOT unur AT cornell DOT edu>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Vic wrote:

> int j;
> for(j=0;j<YResolution;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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019