C
C#7mo ago
lukkasz323

✅ 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?
No description
27 Replies
lukkasz323
lukkasz323OP7mo ago
No description
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
lukkasz323
lukkasz323OP7mo ago
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
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
lukkasz323
lukkasz323OP7mo ago
No description
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
lukkasz323
lukkasz323OP7mo ago
But wouldn't the recursion also happen if i'm not overriding the method?
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
lukkasz323
lukkasz323OP7mo ago
It doesn't break there for some reason
lukkasz323
lukkasz323OP7mo ago
it's because of this
No description
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
lukkasz323
lukkasz323OP7mo ago
okay done, it doesn't stop there
No description
lukkasz323
lukkasz323OP7mo ago
just straight into this
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
lukkasz323
lukkasz323OP7mo ago
No description
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
lukkasz323
lukkasz323OP7mo ago
GitHub
GitHub - lukkasz323/TextEditor at for-tobeclone
Contribute to lukkasz323/TextEditor development by creating an account on GitHub.
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
lukkasz323
lukkasz323OP7mo ago
I have the breakpoint in here
No description
lukkasz323
lukkasz323OP7mo ago
but they don't seem to work
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
lukkasz323
lukkasz323OP7mo ago
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
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
lukkasz323
lukkasz323OP7mo ago
omg i though i had that commented out yeah it works now thansk for the help
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX7mo ago
Use the /close command to mark a forum thread as answered
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server