From: Radical NetSurfer 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: References: <8F60AAC2BASINANUNUR AT 132 DOT 236 DOT 56 DOT 8> <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 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 >: >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 >>> >>>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.