Click here to Skip to main content
15,917,062 members
Home / Discussions / C#
   

C#

 
GeneralRe: XML file comparison output with node names Pin
Pete O'Hanlon25-Sep-18 8:12
mvePete O'Hanlon25-Sep-18 8:12 
GeneralRe: XML file comparison output with node names Pin
Raja Saravanan25-Sep-18 18:06
Raja Saravanan25-Sep-18 18:06 
GeneralRe: XML file comparison output with node names Pin
Pete O'Hanlon25-Sep-18 20:38
mvePete O'Hanlon25-Sep-18 20:38 
GeneralRe: XML file comparison output with node names Pin
Raja Saravanan26-Sep-18 21:02
Raja Saravanan26-Sep-18 21:02 
GeneralRe: XML file comparison output with node names Pin
Raja Saravanan2-Oct-18 20:23
Raja Saravanan2-Oct-18 20:23 
GeneralRe: XML file comparison output with node names Pin
Pete O'Hanlon2-Oct-18 20:44
mvePete O'Hanlon2-Oct-18 20:44 
GeneralRe: XML file comparison output with node names Pin
Raja Saravanan3-Oct-18 17:14
Raja Saravanan3-Oct-18 17:14 
QuestionIssue with Land Registry Service reference.cs Pin
Member 1387432624-Sep-18 3:57
Member 1387432624-Sep-18 3:57 
AnswerRe: Issue with Land Registry Service reference.cs Pin
OriginalGriff24-Sep-18 4:08
mveOriginalGriff24-Sep-18 4:08 
AnswerRe: Issue with Land Registry Service reference.cs Pin
Richard Deeming24-Sep-18 7:56
mveRichard Deeming24-Sep-18 7:56 
GeneralRe: Issue with Land Registry Service reference.cs Pin
glennPattonWork325-Sep-18 0:52
professionalglennPattonWork325-Sep-18 0:52 
QuestionHow to get last day of specific date Pin
thepast23-Sep-18 18:11
thepast23-Sep-18 18:11 
AnswerRe: How to get last day of specific date Pin
Mycroft Holmes23-Sep-18 20:32
professionalMycroft Holmes23-Sep-18 20:32 
AnswerRe: How to get last day of specific date Pin
Maciej Los23-Sep-18 21:17
mveMaciej Los23-Sep-18 21:17 
GeneralRe: How to get last day of specific date Pin
OriginalGriff23-Sep-18 21:38
mveOriginalGriff23-Sep-18 21:38 
GeneralRe: How to get last day of specific date Pin
Maciej Los23-Sep-18 22:02
mveMaciej Los23-Sep-18 22:02 
GeneralRe: How to get last day of specific date Pin
OriginalGriff23-Sep-18 22:26
mveOriginalGriff23-Sep-18 22:26 
AnswerRe: How to get last day of specific date Pin
OriginalGriff23-Sep-18 21:38
mveOriginalGriff23-Sep-18 21:38 
AnswerRe: How to get last day of specific date Pin
Richard MacCutchan23-Sep-18 21:54
mveRichard MacCutchan23-Sep-18 21:54 
QuestionStackoverflow Pin
Thomas Kiær23-Sep-18 0:28
Thomas Kiær23-Sep-18 0:28 
AnswerRe: Stackoverflow Pin
OriginalGriff23-Sep-18 1:13
mveOriginalGriff23-Sep-18 1:13 
GeneralRe: Stackoverflow Pin
Thomas Kiær23-Sep-18 5:45
Thomas Kiær23-Sep-18 5:45 
GeneralRe: Stackoverflow Pin
OriginalGriff23-Sep-18 6:04
mveOriginalGriff23-Sep-18 6:04 
No, a pause won't make any difference.

This is going to be difficult to explain without being able to tell when your eyes glaze over, but I'll try.

Suppose you have a stack of coins and a piece of paper. Each time you turn the paper over, you do exactly what it says.
So you turn the paper and it says:
1) Put a coin on the stack.
2) Turn over the paper.
So you do.
The stack grows one bigger, and you turn the paper. This time it says:
1) Put a coin on the stack.
2) Turn over the paper.
So you do.
The stack grows one bigger, and you turn the paper. You know what it says, because you are back where you started!
Each time you turn the paper, the stack of coins gets bigger, and bigger.
At some point, it reaches the ceiling, and you can't add another - but you try to force a coin on, and the whole pile falls to the ground with a crash!

That's what happens with unbounded recursive methods - you keep on calling it, and the stack gets bigger, and bigger until it runs out of space and your application crashes.
Adding a delay doesn't "fix the problem", it just means it takes longer in real-world time to get there, just as it does with the pile of coins. Even if you change one side of the paper to read
1) Put a coin on the stack.
2) Wait 30 seconds.
3) Turn over the paper.
The same problem will happen, the stack will still collapse, but it's happen later on in the day.

The way to fix this is: either get rid of the recursion, or add a boundary condition which lets you out of the method without the recursive call. There really is no other solution!
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!

GeneralRe: Stackoverflow Pin
Thomas Kiær23-Sep-18 6:14
Thomas Kiær23-Sep-18 6:14 
GeneralRe: Stackoverflow Pin
OriginalGriff23-Sep-18 6:27
mveOriginalGriff23-Sep-18 6:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.