You could keep track of memory, but why not increase size of process first. Additionally, you could get stack memory and meory data. Call it before exit get memory stats. You housl now have a ballpark of how much emory each call takes. You can then perhaps use a counter.
Regards Chuck On Thu, Nov 15, 2018 at 11:20 AM Chip Scheide via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > I have a recursive routine (genology) > The routine is fine and works as expected - as long as the data is > valid. > > I was working in my test data, which I have apparently F*&^%ed and the > routine recurses until I get a stack error and 4D crashes (stand alone). > > How can I manage this so that I can exit the recursion gracefully with > a useful(?) error message. Memory available measurements? free stack > space? > I.E. The operation is being truncated due to inconsistent data. > > Thanks > Chip > > --------------- > Gas is for washing parts > Alcohol is for drinkin' > Nitromethane is for racing > ********************************************************************** > 4D Internet Users Group (4D iNUG) > Archive: http://lists.4d.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ********************************************************************** -- ----------------------------------------------------------------------------------------- Chuck Miller Voice: (617) 739-0306 Fax: (617) 232-1064 Informed Solutions, Inc. Brookline, MA 02446 USA Registered 4D Developer Providers of 4D, Sybase & SQL Server connectivity http://www.informed-solutions.com ----------------------------------------------------------------------------------------- This message and any attached documents contain information which may be confidential, subject to privilege or exempt from disclosure under applicable law. These materials are intended only for the use of the intended recipient. If you are not the intended recipient of this transmission, you are hereby notified that any distribution, disclosure, printing, copying, storage, modification or the taking of any action in reliance upon this transmission is strictly prohibited. Delivery of this message to any person other than the intended recipient shall not compromise or waive such confidentiality, privilege or exemption from disclosure as to this communication. ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************