You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So the Demystified full stack trace should be this:
ActionException: {
Type: ObjectDisposedException,
Message: Cannot access a disposed object.,
ObjectName: ,
StackTrace:
at bool System.Threading.TimerQueueTimer.Change(uint dueTime, uint period)
at bool System.Threading.Timer.Change(long dueTime, long period)
at bool System.Threading.Timer.Change(TimeSpan dueTime, TimeSpan period)
at void Nied.Logging.Test.Methods.ExampleException()
at Exception Nied.Utility.Get.ActionException(Action action)
}
OR if the overloads are eliminated, the Demystified stack trace could possibly be simplified to this:
ActionException: {
Type: ObjectDisposedException,
Message: Cannot access a disposed object.,
ObjectName: ,
StackTrace:
at bool System.Threading.TimerQueueTimer.Change(uint dueTime, uint period)
at bool System.Threading.Timer.Change(TimeSpan dueTime, TimeSpan period)
at void Nied.Logging.Test.Methods.ExampleException()
at Exception Nied.Utility.Get.ActionException(Action action)
}
Here's my thoughts:
You can see from the ExampleException() code provided that it does actually call the overload with two TimeSpan parameters and not the one with two long parameters. I'm assuming that behind the scenes it's an overload so maybe the intent was to only show the stack of the overload that was actually called and not all the overload methods for simplification in understanding especially when it's not my code. That makes sense to me but its keeping the last overload called not the first one which is the one that's actually called in my code and that makes it confusing when investigating the stack trace.
TLDR It's either missing the line:
at bool System.Threading.Timer.Change(TimeSpan dueTime, TimeSpan period)
or it included the wrong one. This one:
at bool System.Threading.Timer.Change(long dueTime, long period)
The text was updated successfully, but these errors were encountered:
This stack trace:
Is Demystified to this:
But the actual code is this:
So the Demystified full stack trace should be this:
OR if the overloads are eliminated, the Demystified stack trace could possibly be simplified to this:
Here's my thoughts:
You can see from the
ExampleException()
code provided that it does actually call the overload with twoTimeSpan
parameters and not the one with twolong
parameters. I'm assuming that behind the scenes it's an overload so maybe the intent was to only show the stack of the overload that was actually called and not all the overload methods for simplification in understanding especially when it's not my code. That makes sense to me but its keeping the last overload called not the first one which is the one that's actually called in my code and that makes it confusing when investigating the stack trace.TLDR
It's either missing the line:
at bool System.Threading.Timer.Change(TimeSpan dueTime, TimeSpan period)
or it included the wrong one. This one:
at bool System.Threading.Timer.Change(long dueTime, long period)
The text was updated successfully, but these errors were encountered: