I am currently working on a recursive program to process datasets of varying sizes.
The problem I’m finding is that with my largest dataset (around 350,000 records) my program seems to be terminating without providing any error information.
From testing I think it could be due to the recursion leaving too many incomplete methods open (rough count is 72756). So my question is, does C++ have a limit to the number of active methods or am I looking at the wrong issue?
C++ as a language does not. A real implementation of C++ will always have a limit though, and you’re using deep enough recursion that running out of stack space certainly sounds quite possible.
At least right off, it sounds like recursion is probably a poor choice for the job, though you’ve given little enough description that it’s a bit hard to say.