ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Out of Stack Space (https://www.excelbanter.com/excel-programming/290232-out-stack-space.html)

Michael Smith

Out of Stack Space
 
Hey all, I'm programming in excel, and I have 3 subs that continually
call eachother for 1 project. Everything works fine, then half way into
it I get an "out of stack space" error. Is there an easy fix?



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Tom Ogilvy

Out of Stack Space
 
redesign you code so your subs don't recursively call each other.

--
Regards,
Tom Ogilvy

"Michael Smith" wrote in message
...
Hey all, I'm programming in excel, and I have 3 subs that continually
call eachother for 1 project. Everything works fine, then half way into
it I get an "out of stack space" error. Is there an easy fix?



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!




KJTFS[_90_]

Out of Stack Space
 
Make sure your recursive calls are good, trace the program. If thi
doesn't help try declaring some variables as global, this will cut o
the memory use of recursion, and also see if you can get rid of th
recursion all together.

Keith
www.kjtfs.com

Tom Ogilvy wrote:
*redesign you code so your subs don't recursively call each other.

--
Regards,
Tom Ogilvy

"Michael Smith" wrote in message
...
Hey all, I'm programming in excel, and I have 3 subs tha

continually
call eachother for 1 project. Everything works fine, then half wa

into
it I get an "out of stack space" error. Is there an easy fix?



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


--
Message posted from http://www.ExcelForum.com



All times are GMT +1. The time now is 07:14 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com