delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/01/17:23:43

From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
Newsgroups: comp.os.msdos.djgpp
Subject: TIP: If you ever see 0x00000000 in a traceback
Date: 1 Mar 1997 06:15:20 GMT
Organization: The National Capital FreeNet
Lines: 19
Message-ID: <5f8hho$c55@freenet-news.carleton.ca>
Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
NNTP-Posting-Host: freenet2.carleton.ca
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp


If you get a crash with a traceback of just 0x00000000 with nothing symify
can use, chances are you accidentally used a NULL pointer somewhere a
pointer to a function was expected. I.e.

int main (int argc, char *argv[]) {
  void (*func)(void);
  func=NULL;
  func();
}

will generate such a crash.

--
    .*.  Where feelings are concerned, answers are rarely simple [GeneDeWeese]
 -()  <  When I go to the theater, I always go straight to the "bag and mix"
    `*'  bulk candy section...because variety is the spice of life... [me]
Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh

- Raw text -


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