delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/04/16:36:35

From: "Matthew Conte" <spam AT somebody DOT else>
Newsgroups: comp.os.msdos.djgpp
References: <199810041742 DOT NAA01799 AT indy DOT delorie DOT com>
Subject: Re: SIGSEGV under DOS, but not Win9x?
Lines: 19
X-Newsreader: Microsoft Outlook Express 4.72.3155.0
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0
Message-ID: <xYQR1.462$l93.2292793@proxye1.nycap.rr.com>
Date: Sun, 4 Oct 1998 16:34:00 -0400
NNTP-Posting-Host: 24.92.55.44
X-Complaints-To: abuse AT nycap DOT rr DOT com
X-Trace: proxye1.nycap.rr.com 907533213 24.92.55.44 (Sun, 04 Oct 1998 16:33:33 EDT)
NNTP-Posting-Date: Sun, 04 Oct 1998 16:33:33 EDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

DJ Delorie wrote in message <199810041742 DOT NAA01799 AT indy DOT delorie DOT com>...

>You are declaring a pointer (bitmap) and passing it to a function
>(which dereferences it) but you never initialize the pointer to point
>to anything.  If the undefined initial value happens to be zero, your
>program will crash.

Thanks, DJ - I don't know *how* I missed that in my code...

>cwsdpmi is a lot stricter than Windows; if you have a problem in
>cwsdpmi and not windows, it's probably a bug in your code.

That's what I've learned from past experience, so I knew I was mucking
something up...

Thanks again,
Matt.


- Raw text -


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