[Mono-dev] About recursivily and setters / getters

Tom Spink tspink at gmail.com
Sun Sep 6 16:58:08 EDT 2009


2009/9/6 Romain Tartière <romain at blogreen.org>:
> I guess this crash is somewhat violent.  Should a bug be opened for
> this? Any comment?

It's crashing because it's a stack overflow.  A recursive call will
never result in an infinite loop, because each call to itself pushes a
new stack frame onto the stack.  Eventually (well, quite quickly in
fact!), the stack will fill up and you'll get a stack overflow
exception.

(which is what I get, when I execute your program on my system)

-- 
Tom Spink
Pablo Picasso  - "Computers are useless. They can only give you answers."


More information about the Mono-devel-list mailing list