What's the maximum depth the recursion will ever reach? Got any source code to look at?
- Peter -----Original Message----- From: Stephen Moretti [mailto:[EMAIL PROTECTED] Sent: 02 February 2004 11:44 To: [EMAIL PROTECTED] Subject: [ cf-dev ] Object 2 Struct.... Morning folks.... After much struggling with a .NET gateway, I've managed to create myself an Object to Struct function to pick up any object (in this case a web service object), parse through it and spit the data into a struct, so that its easier to dump out/use/whatever. I've included some functionality to bung out some rough debugging and to allow ignoring of named elements in the object. Problem I've got is that I included a reference to an external counter variable and a max count variable, the idea being that when the count hits the max count it should break out. It seemed to be working, but then I had a situation where I hit a circular reference and ended up having to restart the CFMX server.... ahem half a gig of memory gone in seconds... whoops. The function is a recursive thingy to be able to work its way through the object. I suspect that the reason my counter didn't work was because of the recursion. Has anyone got any suggestions how I could ensure that if I hit a circular reference, that I could identify this and bomb out the function all the way to the original calling page? Regards Stephen -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
