Subj : Re: stack overflow before it attempts to sort 1 & 2 million int arrays To : comp.programming From : Willem Date : Tue Aug 16 2005 10:53 am strotee@gmail.com wrote: ) The assignment was just for 1000,10,000, and 100,000. Those parts are ) working. I'm not asking you to do my homework, just curious why the ) program crashes at 1 & 2 million. Oddly enough, the program was working ) earlier, now it doesn't - very strange behaviour. You made a mistake in your sorting algorithm, that causes it to recurse extremely often. If the set gets too large, there are so many recursion calls that you overflow the stack, causing the crash. SaSW, Willem -- Disclaimer: I am in no way responsible for any of the statements made in the above text. For all I know I might be drugged or something.. No I'm not paranoid. You all think I'm paranoid, don't you ! #EOT .