Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Babble » Bugs   (RSS)

Simple VS Addin (updated)

Back during the PDC for Whidbey I wrote a post about Creating a Simple Addin . Recently I was looking to update it and found a horrible bug in it. First, here is the corrected code: public void OnConnection( object application, ext_ConnectMode connectMode,
Posted by SteveJS | 2 Comments
Filed under: , ,

Naming threads in Win32 And .Net

When you are debugging an application with multiple threads it can be handy to have a better name than just the thread id. This is simple to do in managed code. There is a property on the Thread object that you can set. It is also possible to do this
Posted by SteveJS | 7 Comments
Filed under: , ,

FuncEvil, the Clipboard, and Deadlocks

Mike Stall has a great post that, for a debugger dev, is the moral equivalent of sticking a fork in a toaster. The basic problem he addresses is that once you are stopped in the debugger the UI for your application will no longer paint. What if you need
Posted by SteveJS | 3 Comments
Filed under: , ,

Change Debugger behavior with Attributes

Certain metadata attributes modify the stepping, breakpoint, and callstack behavior of the VS managed Debugger. This is useful if you are creating an interpreter, language runtime, or a tool that modifies the code in a managed assembly. There are three
Posted by SteveJS | 0 Comments
Filed under: , ,

Netmodules: Sort of like a lib

I first ran into netmodules before VS 2002 was shipped. The netmodule gave me precisely what I asked for, without actually solving my problem. I wanted to use multiple languages (C#, and C++ /clr) in a single assembly. It turns out a single assembly can
Posted by SteveJS | 1 Comments
Filed under: , ,

Perf Awareness is not Premature

I've found myself adding a timer to each of the unit test frameworks I use so I can see how long my tests take. I am not trying to do anything complex. I just want to be aware of the perf. The same way pass and fail are visible, 1ms vs 90ms is visible.
Posted by SteveJS | 1 Comments
Filed under: ,

Is this obvious?

using System; using System.Collections.Generic; class LearnTheMaterialsYouWillUse { static void Main ( string [] IsThisObvious) { TimeSpan passesBeforeYouKnowIt; DoYouNodeThis aBigOlTree = new DoYouNodeThis(21); passesBeforeYouKnowIt = TimeIteration(aBigOlTree.InOrder1());
Posted by SteveJS | 1 Comments
Filed under: ,

Left Side, Right Side

Never refer to two software components as 'The Left Side' and 'The Right Side'. The name will stick, and resist any attempt at change. The underlying debugging componets for the CLR are loaded into both the debugger and the debuggee. I remember which
Posted by SteveJS | 4 Comments
Filed under: ,
 
Page view tracker