Mail Archives: djgpp/2000/06/28/08:49:12
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 -