delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/28/08:49:12

From: Radical NetSurfer <radsmail AT juno DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: They do NOT run the same! W95/DOS!
Date: Wed, 28 Jun 2000 05:37:15 -0400
Message-ID: <pghjlssch2tf8ml1uc9ugq9kkah82dv23c@4ax.com>
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>
X-Newsreader: Forte Agent 1.8/32.548
X-No-Archive: yes
MIME-Version: 1.0
NNTP-Posting-Host: 216.202.134.212
X-Original-NNTP-Posting-Host: 216.202.134.212
X-Trace: 28 Jun 2000 05:39:44 -0400, 216.202.134.212
Lines: 61
X-Original-NNTP-Posting-Host: 64.31.79.51
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

1) I was not aware I was yelling at anyone

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(...)

and thats is all there is to tell.  


On 27 Jun 2000 23:31:49 GMT, Sinan_Unur AT mail DOT com (A. Sinan Unur)
wrote:

>radsmail AT juno DOT com (Radical NetSurfer) wrote in 
><rt6ils4mql8imek537fpr0acsgkheqplbh AT 4ax DOT com>:

>just yelling at people instead of trying to find your mistake is not going to 
>make you a better programmer.

I normally do not apologize for what has not transpired, but these
days its hard to judge where people may be coming from, so if I gave
an 'aggressive' or (more likely) somewhat 'sarcastic' impression...
I'm sorry...

>do try the following:
>
>>>for further enlightenment, you can test the following program under dos 
>>>and in a dos window under windows 9x.
>>>
>>>#include <stdlib.h>
>>>
>>>int main(void) {
>>>    char* nullpointer = NULL;
>>>    *nullpointer = 'c';
>>>    return 0;
>>>}

please see #2 above.

>also check out the 'weird problems' section of the comp.lang.c FAQ, in 
>particular: 

>http://www.eskimo.com/~scs/C-faq/q16.5.html
>http://www.eskimo.com/~scs/C-faq/q16.8.html

I'll look into this immediately.

>if you want more help, you need to provide an example of code that exhibits 
>your problem.
>
>Sinan.

- Raw text -


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