Sign in
Mike Stall's .NET Debugging Blog
Notes on Managed Debugging, ICorDebug, and random .NET stuff
Blog - Link List
Other Blogs
Tim's .NET blog
Energy Policy
CLR blogs
Rick Byers (CLR)
List of all CLR blogs
David Broman (Profiling)
Thomas Lai's blog
Other links
All about MDbg
What's new in v2.0?
Who am I?
ICorDebug/MDbg Forums
Contact me?
ASP.Net
ScottGu's blog
Henrik's blog
Brad Wilon's blog
Carlos Figueira's blog
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
RSS for posts
Atom
RSS for comments
OK
Search
Tags
Compilers & Languages
Design
dlr
Edit-And-Continue (EnC)
Family
feedback
FuncEval
ICorDebug
Interop (mixed-mode)
linkfest
MDbg
Non-work
Pages
Quiz
Random
random .net
reading
Sample Code
Silverlight
This should be in MSDN
Troubleshooting
versioning
WebAPI
Whidbey (V2.0)
Windows Live
Archive
Archives
August 2012
(2)
May 2012
(3)
April 2012
(5)
March 2012
(2)
November 2011
(1)
September 2011
(1)
December 2010
(1)
September 2009
(2)
July 2009
(1)
May 2009
(1)
February 2009
(1)
November 2008
(1)
June 2008
(1)
May 2008
(2)
April 2008
(3)
March 2008
(5)
February 2008
(2)
January 2008
(10)
December 2007
(7)
November 2007
(5)
October 2007
(16)
September 2007
(8)
August 2007
(12)
July 2007
(9)
June 2007
(5)
May 2007
(7)
April 2007
(4)
March 2007
(6)
February 2007
(5)
January 2007
(11)
December 2006
(9)
November 2006
(13)
October 2006
(9)
September 2006
(10)
August 2006
(6)
July 2006
(13)
June 2006
(10)
May 2006
(3)
April 2006
(4)
March 2006
(31)
February 2006
(16)
January 2006
(18)
December 2005
(11)
November 2005
(23)
October 2005
(12)
September 2005
(22)
August 2005
(31)
July 2005
(10)
June 2005
(7)
May 2005
(4)
April 2005
(5)
March 2005
(9)
February 2005
(16)
January 2005
(6)
December 2004
(3)
November 2004
(4)
October 2004
(14)
September 2004
(2)
October, 2006
MSDN Blogs
>
Mike Stall's .NET Debugging Blog
>
October, 2006
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Mike Stall's .NET Debugging Blog
Unit testing databases
Posted
over 7 years ago
by
Mike Stall - MSFT
1
Comments
Here's a cool tool on CodePlex that Tim pointed me to f or anyone who needs to write unit tests on your data-access code: http://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=MassDataHandler “The MassDataHandler is a framework to...
Mike Stall's .NET Debugging Blog
Possible slowdowns under a debugger
Posted
over 7 years ago
by
Mike Stall - MSFT
2
Comments
Here's a list of things that may slow down execution under a debugger. I've seen a few threads go by about ways that running under the debugger significantly slows down normal execution by more than 2x, and this is a collection of those items. Background...
Mike Stall's .NET Debugging Blog
Writing an RTF to HTML converter, posting code in blogs.
Posted
over 7 years ago
by
Mike Stall - MSFT
12
Comments
Visual Studio's IDE will copy code as RTF (Rich Text Format). Web browsers like HTML. So posting code from Visual into blogs means a decent RTF to HTML conversion. And having a technical blog means posting code. So I needed to solve this conversion problem...
Mike Stall's .NET Debugging Blog
Questions you should ask before using a callback / delegate
Posted
over 7 years ago
by
Mike Stall - MSFT
5
Comments
I just got burned by using callbacks in a multi-threaded app. I've rewritten the part to avoid callbacks, but for my good-deed-of-the-day, I wanted to issue a word of warning. Before you can safely use a callback / delegate / virtual function, particularly...
Mike Stall's .NET Debugging Blog
Using Foo<T>(...) instead of Foo(System.Type, ...)
Posted
over 7 years ago
by
Mike Stall - MSFT
8
Comments
Whenever you're passing in a parameter of System.Type that is usually determined at compile-time, consider having a version with a generic parameter. This converts runtime checks into compile time checks, may let you have more efficient code, and likely...
Mike Stall's .NET Debugging Blog
GCHandle.ToIntPtr vs. GCHandle.AddrOfPinnedObject
Posted
over 7 years ago
by
Mike Stall - MSFT
0
Comments
Both GCHandle's ToIntPtr and AddrOrPinnedObject take in a GCHandle and return an IntPtr. I had to do a double-take to remember the difference between them, so I'd thought I'd blog about it. GCHandle.AddOrPinnedObject is for passing the address of the...
Mike Stall's .NET Debugging Blog
Pop quiz: Who wins in finally vs. return?:
Posted
over 7 years ago
by
Mike Stall - MSFT
8
Comments
Question 1) What's the return value from this C# function: static int Test() { int val = 1; try { return val; } finally { val = 2; } } Question 2) What about this (using a static instead of local) static int s_val; static...
Mike Stall's .NET Debugging Blog
Debugging Ngen code
Posted
over 7 years ago
by
Mike Stall - MSFT
3
Comments
You can debug ngen (aka prejitted) code from VS2005 and also have the VS2005 IDE launch ngenned code. In practice, images are rarely ngenned as debuggable. And usually when under a debugger, assemblies are loaded with debuggable code-gen flags (In VS...
Mike Stall's .NET Debugging Blog
ICorDebugValue vs. System.Object
Posted
over 7 years ago
by
Mike Stall - MSFT
3
Comments
System.Object represents a managed object within a process. ICorDebugValue is the debugger's representation of a System.Object within the debuggee process. The key here is that the debugger and debuggee processes are ideally fully isolated from each...
Page 1 of 1 (9 items)