Torsten Oppermann wrote:Hi !
Does an inifinite loop cause a StackOverflowException ? always, never, sometimes ? or just when a method is called inifinite times...
Thanks in advance
An infinite loop or a a method called infinite times (e.g.
) will not necessarily produce a stack overflow.
A stack overflow will be thrown when stack space is consumed unconditionally, like in the case of a badly designed recursive method, e.g.