Home Contact

Johnny Kauffman

Deriding bad software so you don't have to!

February 2012 Entries


Setting a variable when a breakpoint hits

Occasionally I run into a problem difficult to reproduce in that it takes a laborious amount of tinkering. Sometimes I’ve gone through the work of plugging away at the user interface or forcefully moving the current statement manually around if statements. In these situations, I become very attached to my debugging session (no pun intended). I am secure in my nerdiness enough to admit that there have been instances where I have changed code for testing purposes and forgotten to revert those changes ......

A “near miss” using DirectX’s Nearest-Point Sampling

Summary I ran into a visual issue using DirectX (in C# via SlimDX) in which the texture filtering was not aligning properly. This is difficult to describe in words, so read the fully explanation below. The solution is pretty simple, so I decided to post about it in hopes that it is use to another DirectX neophyte in the future. The Problem Like most normal people, in my spare time I work on an open-source emulator for the long-lost 3DO multiplayer video game system (see fourdo.com for all your 3DO ......

Unit Test Assembly Copying Oddity in Team Foundation Build

The key charactersYou may very well run into the same issue I did if you are using the following technologies:Team Foundation Server (TFS) with Team Foundation Build (TFB) - in my case, 2010Visual Studio Unit Tests - also 2010, in my caseReliance on loading assemblies at runtime: Assembly.Load()How might someone run into #3, you might ask? It's pretty common these days teeming with reliance on reflections and other fancy run-time logic. In my case, it was Enterprise Library.IssueI was seeing an issue ......