Message-ID: <003801be5223$fca8b380$e1f8c6c3@johans-dator> From: "Johan Henriksson" To: Subject: Re: Is that bug ? Date: Sat, 6 Feb 1999 23:56:51 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Reply-To: djgpp AT delorie DOT com from Johan Henriksson, Sweden HTTP://come.to/jhewok | Primary mail: johan DOT he AT telia DOT com #UIN 12035895 Second: jhe75 AT hotmail DOT com Third: johan_he AT yahoo DOT com Leadprogrammer and FX-specialist at Real software http://come.to/real_software ************************************************************************* >I has a program: > >////////////////////////////////////////////////////////////////////// >#include > >int main( void ) >{ > char buffer[1024]; > memcpy( buffer, NULL, sizeof( buffer ) ); > return 0; >} >////////////////////////////////////////////////////////////////////// > >Under DOS, Unix that program is crashed, BUT >under Windows that program won't crash. >What is it ? Is that bug ? I have no idéa what that piece of code is doing but here's the fact: Windows is too good at errorhandling. Program in DOS so you see when your program doesn't work correctly. > >- George >