
C++ System.StackOverflowException (MicrosoftVisualStudio.NET)
Started by
daniel_d
, Nov 11 2005 10:03 AM
#1
Posted 11 November 2005 - 10:03 AM

#2
Posted 11 November 2005 - 12:32 PM

Hi Daniel,
It sounds like your program uses recursion to do the matrix calculations. You won't be able to use it for matrices greater than a certain size without modifying the code to iterate through a loop instead repeatedly calling the same function.
-Ricci
It sounds like your program uses recursion to do the matrix calculations. You won't be able to use it for matrices greater than a certain size without modifying the code to iterate through a loop instead repeatedly calling the same function.
-Ricci
#3
Posted 11 November 2005 - 06:06 PM

Probably exactly right. If you're calculating determinants, for example, recursively, then you'll blow the stack out VERY quickly a recursive routine 1200 times..... Rewrite it iteratively so that you can allocate your own memory.

#4
Posted 12 November 2005 - 11:24 AM

Thank you very much!! I will try it out.
Similar Topics
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users
As Featured On:






