Not all AnonymousMethods are the same
Posted by: The Moth,
on 15 Sep 2008 |
View original | Bookmarked: 0 time(s)
Whilst debugging code that uses multiple anonymous methods (or lambdas) from a single method combined with multiple Threads, an interesting issue surfaces with the stack frames that Visual Studio 2008 presents.Can you spot the problem with the following screenshot (original code from this post)? Look at the Location column of the Threads window:Are both of those Threads with the same location string (Program.Main.AnonymousMethod) at the same place in the code editor? Look at the code editor and the...