A friend asked me for help figuring out why his rewrite of some very, very old software was giving him…