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: <8F60AAC2BASINANUNUR AT 132 DOT 236 DOT 56 DOT 8> <8F60CED96ASINANUNUR AT 132 DOT 236 DOT 56 DOT 8> 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.