✅ Calling base of subscribed method results in a StackOverflowException
I'm trying to override an
OnExiting
method, however trying to call base.OnExiting()
within that override results in a StackOverflowException
.
Why is that happening and how can I preserve both base and overriden functionality?
27 Replies

Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
Why does this only happen when I call the base class. Wouldn't not overriding it at all just call the base class instead? But that doesn't result in exception.
It's a part of a MonoGame library
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View

Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
But wouldn't the recursion also happen if i'm not overriding the method?
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
It doesn't break there for some reason
it's because of this

Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
okay done, it doesn't stop there

just straight into this
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View

Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
GitHub
GitHub - lukkasz323/TextEditor at for-tobeclone
Contribute to lukkasz323/TextEditor development by creating an account on GitHub.
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
I have the breakpoint in here

but they don't seem to work
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
it's a part of the external code from MonoGame
it's decompiled
maybe thats why
yeah it must be it
but how do I put a breakpoint inside a compiled library?
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
omg i though i had that commented out
yeah it works now
thansk for the help
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
Use the /close command to mark a forum thread as answered
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View