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 Date: Wed, 10 Nov 2004 11:45:29 -0800 (PST) Message-Id: <200411101945.iAAJjTDO027006@syrphus.ucdavis.edu> To: cygwin AT cygwin DOT com Subject: stack overflow in cygwin_nt-5.0 From: "Yu-Cheng Chou" X-Errors-To: cycchou AT magenta DOT ucdavis DOT edu X-Originating-IP: [169.237.108.53] X-User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322) X-Scanned-By: MIMEDefang 2.41 I have to use large matrices (even larger) in my application. So, how to do it? >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? -- 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/