Programming

  • API Tip: Don't create your own IDisposable

    I'm in the middle of refactoring some ugly code that synchronizes a couple of our systems. One of our systems forces us to use an API; we're not allowed to modify the database directly or we void our service contract. You'd hope, then, that they provide a decent API for interacting with the system. Well, first things first, the "API" is really just a bunch of horrible .Net wrappers around COM components. Next, we come to the fact that they have their own "IDisposable" interface, called "IBBDisposable". It doesn't have a "Dispose" method, instead it has a "CloseDown" method. So basically,...

  • SubText Friction

    I'm only a few minutes into setting up my new blog, and SubText is already giving me grief. This reminds me of why I decided to run off and build my own blog engine. Lets see what issues I've run into so-far: Couldn't get SubText to run under IIS7's Integraded mode; had to switch to Classic. Had permissions issues on my App_Data folder. Ran into several errors while changing some options that seem to have "fixed" themselves when I refreshed the page. Getting a NullReferenceException when I try to...