PC Review


Reply
 
 
Mike NG
Guest
Posts: n/a
 
      2nd Jun 2005
Are there any limits to the depth level of recursion, or is it
determined by memory

Are there any functions you can call like you can in 'C' to see if
you'll have enough free memory to allocate a whole stash of stuff??
--
Mike
 
Reply With Quote
 
 
 
 
Tom Ogilvy
Guest
Posts: n/a
 
      2nd Jun 2005
It is limited by the amount of stack space. To the best of my knowledge,
this is fixed and can not be queried as to how much is used and how much
remains available.

--
Regards,
Tom Ogilvy


"Mike NG" <(E-Mail Removed)> wrote in message
news:BO21yJAbS1nCFwb$@sweepdog.home...
> Are there any limits to the depth level of recursion, or is it
> determined by memory
>
> Are there any functions you can call like you can in 'C' to see if
> you'll have enough free memory to allocate a whole stash of stuff??
> --
> Mike



 
Reply With Quote
 
 
 
 
Niek Otten
Guest
Posts: n/a
 
      2nd Jun 2005
Hi Mike,

AFAIK, no such limit has been published.
I have several functions in which the level of recursion is >100 (Markov
chains for disability insurance) and have not experienced any problems so
far.

--

Kind Regards,

Niek Otten

Microsoft MVP - Excel

"Mike NG" <(E-Mail Removed)> wrote in message
news:BO21yJAbS1nCFwb$@sweepdog.home...
> Are there any limits to the depth level of recursion, or is it determined
> by memory
>
> Are there any functions you can call like you can in 'C' to see if you'll
> have enough free memory to allocate a whole stash of stuff??
> --
> Mike



 
Reply With Quote
 
Rob Bovey
Guest
Posts: n/a
 
      2nd Jun 2005
"Mike NG" <(E-Mail Removed)> wrote in message
news:BO21yJAbS1nCFwb$@sweepdog.home...
> Are there any limits to the depth level of recursion, or is it determined
> by memory
>
> Are there any functions you can call like you can in 'C' to see if you'll
> have enough free memory to allocate a whole stash of stuff??


Hi Mike,

Depth of recursion is limited by Excel's available stack space. There
isn't any way to determine the amount of stack space available. There's a
VBA call you can use to determine the amount of system memory available
(Application.MemoryFree), but this reports available system memory, not
internal stack space available.

--
Rob Bovey, Excel MVP
Application Professionals
http://www.appspro.com/

* Take your Excel development skills to the next level.
* Professional Excel Development
http://www.appspro.com/Books/Books.htm


 
Reply With Quote
 
Mike NG
Guest
Posts: n/a
 
      2nd Jun 2005
On Thu, 2 Jun 2005 at 21:24:54, Niek Otten (Niek Otten
<(E-Mail Removed)>) wrote:
>Hi Mike,
>
>AFAIK, no such limit has been published.
>I have several functions in which the level of recursion is >100 (Markov
>chains for disability insurance) and have not experienced any problems so
>far.
>

Great - that should more than cover it then
--
Mike
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
windows upgrade web page recursion walter a kehowski Windows XP General 0 28th Dec 2004 11:53 PM
recursion depth, 'Out of stack space' in Quicksort =?Utf-8?B?bWFyY2Vs?= Microsoft Excel Programming 0 21st Apr 2004 09:11 PM
How to search the Windows registry by recursion until a reg key is found Belinda Microsoft Excel Programming 0 2nd Mar 2004 07:39 AM
Windows update frame recursion Windows XP Performance 2 27th Dec 2003 08:24 PM
Recursion with user defined functions bigJim Microsoft Excel Programming 1 15th Dec 2003 02:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:15 AM.