comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Recursion
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Recursion [message #12913] Mon, 14 September 1998 00:00 Go to next message
Martin Vissers is currently offline  Martin Vissers
Messages: 3
Registered: August 1998
Junior Member
To start the monday:

Does anybody know how many times a procedure
can be called recursively ??

I have a small program which gives problems if its
called more then 20 times

Hope someone can help me, the manual couldn't

Cheers,

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
Ir. Martin Vissers
Wageningen Agricultural University
Dept. of Water Resources; Radar Remote Sensing
Nieuwe Kanaal 11
6709 PA Wageningen
The Netherlands
Tel: +31 317 482829
Fax: +31 317 484885
E-mail: martin.vissers@users.whh.wau.nl
vissers@rcl.wau.nl
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
Re: Recursion [message #13030 is a reply to message #12913] Tue, 06 October 1998 00:00 Go to previous message
R. Bauer is currently offline  R. Bauer
Messages: 137
Registered: November 1996
Senior Member
Martin Vissers wrote:

> To start the monday:
>
> Does anybody know how many times a procedure
> can be called recursively ??
>
> I have a small program which gives problems if its
> called more then 20 times
>
> Hope someone can help me, the manual couldn't
>

The problem is that's in recursivly used procedure all variables inside
will be duplicated as many the routine is called.
For example if you call it 20 times as you say and you like to define
inside an array of 1000 elements then the memory is allocated
20*1000*[type] bytes.

If you have big and many arrays inside your recursive called routine you
will get in trouble.




--
R.Bauer

Institut fuer Stratosphaerische Chemie (ICG-1)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: PRINT_FILE?
Next Topic: DXF-to-ASCII converter for IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:36:13 PDT 2025

Total time taken to generate the page: 0.00581 seconds