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 From: David Postill To: cygwin AT cygwin DOT com Subject: Re: stack overflow in cygwin_nt-5.0 Date: Wed, 10 Nov 2004 20:46:07 +0000 Organization: None Reply-To: david AT postill DOT org DOT uk Message-ID: References: <200411101945 DOT iAAJjTDO027006 AT syrphus DOT ucdavis DOT edu> In-Reply-To: <200411101945.iAAJjTDO027006@syrphus.ucdavis.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-OriginalArrivalTime: 10 Nov 2004 20:46:36.0319 (UTC) FILETIME=[5EBC0AF0:01C4C766] Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id iAAKkdSx005830 On Wed, 10 Nov 2004 11:45:29 -0800 (PST), "Yu-Cheng Chou" wrote: | | I have to use large matrices (even larger) in my application. | So, how to do it? C: C++: | | >Don't declare huge data structures on the stack. | | >Max. | | >>Hi, | | >>I declared three double matrices in main function and it caused stack | >>overflow. | | >>double a[300][300], | >> b[300][300], | >> c[300][300]; | | >>below is the message of stack overflow: | | >>Exception: STATUS_STACK_OVERFLOW at eip=00444683 | >>eax=00013624 ebx=00000004 ecx=00032064 edx=00401060 esi=610EF060 | >>edi=61005A9C | >>ebp=0022F068 esp=0022F05C program=C:\home\ycchou\upload\matrix.exe, pid | >>2376, thread main | >>cs=001B ds=0023 es=0023 fs=0038 gs=0000 ss=0023 | >>Stack trace: | >>Frame Function Args | >>0022F068 00444683 (00000001, 617816A0, 0A0500A8, 0022F0C0) | >>0022F0A8 61005F34 (0022F0C0, 00000000, 0022F0A8, 00000200) | >>0022FF88 6100614B (00000000, 00000000, 00000000, 00000000) | >>End of stack trace | | | >Any patch for this? -- David Postill -- 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/