Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <02f001c4c75a$dd2aa4c0$e6ec6f83@robinson.cam.ac.uk> From: "Max Bowsher" To: , "Yu-Cheng Chou" References: <200411101921 DOT iAAJLLln025691 AT syrphus DOT ucdavis DOT edu> Subject: Re: stack overflow in cygwin_nt-5.0 Date: Wed, 10 Nov 2004 19:24:09 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=original Content-Transfer-Encoding: 7bit X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ X-Cam-AntiVirus: No virus found X-Cam-SpamDetails: Not scanned X-IsSubscribed: yes Note-from-DJ: This may be spam Yu-Cheng Chou wrote: > Hi, > > I declared three double matrices in main function and it caused stack > overflow. > > double a[300][300], > b[300][300], > c[300][300]; Don't declare huge data structures on the stack. Max. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/