From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: Please help... Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: <4dophss12p3gdjjedga4bcso52vvu49hvh@4ax.com> References: <3m3T4.547$D%2 DOT 8704 AT news1 DOT news DOT adelphia DOT net> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 29 X-Trace: /KDWjcyLwBzyH2/a15fDWigd26p5xLVuyLv/PU9vVd4RmJpObpK17i1GVBKEVoDBDWz/Efv6Us5b!zyMNL37352BiGrEVk/OSXwQ754O/+VVo1tq4mvVz3F/duzk9UN0izZKgCK5ww+Qa93xBnNoMPFcq!MjlA498= X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Sat, 13 May 2000 05:03:29 GMT Distribution: world Date: Sat, 13 May 2000 05:03:29 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Sat, 13 May 2000 02:46:23 GMT, "Justine Szczap" wrote: >display_title() >{ > BITMAP *the_title; > create_bitmap(640, 480); > clear(the_title); >} /* Always specify the type of object a function returns. */ void display_title() { BITMAP *the_title; the_title = create_bitmap(640, 480); // you forgot to assign it! clear(the_title); destroy_bitmap(the_title); // plug a memory leak } -- Damian Yerrick "I refuse to listen to those who refuse to listen to reason." See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html This is McAfee VirusScan. Add these two lines to your signature to prevent the spread of signature viruses. http://www.mcafee.com/