This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

stack overflow in cygwin_nt-5.0


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]