Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with the recursion logic
Message
From
05/03/2013 23:52:56
Al Doman (Online)
M3 Enterprises Inc.
North Vancouver, British Columbia, Canada
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01567554
Message ID:
01567555
Views:
35
Without looking at your code, the most common cause of problems in recursion is improperly scoped variables. You want all variables to be local. The only inputs should be parameters passed in. Generally those parameters should be by value unless you really, really know what you're doing and you're willing to do some brutal debugging if it doesn't work as you expect.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform