delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/28/06:46:00

From: dontmailme AT iname DOT com (Steamer)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: They do NOT run the same! W95/DOS!
Date: Wed, 28 Jun 2000 10:43:59 GMT
Organization: always disorganized
Lines: 33
Message-ID: <3959d6e4.13352090@news.freeserve.net>
References: <s97hls8hlhbikfhjkaut11p3lavr480eq2 AT 4ax DOT com> <gvvhls8pqkvcavrc6odvj2ud1mnuuj553h AT 4ax DOT com> <8F60AAC2BASINANUNUR AT 132 DOT 236 DOT 56 DOT 8> <rt6ils4mql8imek537fpr0acsgkheqplbh AT 4ax DOT com> <8F60CED96ASINANUNUR AT 132 DOT 236 DOT 56 DOT 8> <pghjlssch2tf8ml1uc9ugq9kkah82dv23c AT 4ax DOT com>
NNTP-Posting-Host: modem-35.antenna-lion.dialup.pol.co.uk
X-Trace: newsg2.svr.pol.co.uk 962189040 11414 62.136.223.35 (28 Jun 2000 10:44:00 GMT)
NNTP-Posting-Date: 28 Jun 2000 10:44:00 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Newsreader: Forte Free Agent 1.11/32.235
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Radical NetSurfer wrote:

> 1) I was not aware I was yelling at anyone

You were writing things LIKE THIS.  That is considered shouting.
(It's also more difficult to read.)

> 2) globally, I have
> BITMAP *da_bmp=NULL;
> ...
> INSIDE the main module...
> 
> da_bmp = create_bitmap(...);
> ....
> destroy_bitmap(da_bmp);
> da_bmp=NULL;
> ...
> THEN INSIDE functions (locations NOT inside main),
> I simply re-assign the Global pointer
> da_bmp = create_bitmap(...)

This makes it sound as if you are creating more bitmaps
than you are destroying.

> and thats is all there is to tell.  

Surely not.  Aren't you writing data into the bitmaps?
Doing so wrongly could cause the sort of symptoms that
you are seeing.

Have you considered using a malloc debugger such as YAMD?

S.

- Raw text -


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