Since my variable wasn’t initialized, it was defaulting to “C:\”-the root directory of my computer.Įvery time I launched the app, it was recursively deleting all the files on my computer. So, when I pulled down his latest code, I didn’t get the newest header file that had the variable set to “C:\temp,” but I did get the code that scanned through “tempFileLocation” and deleted everything there. I had made a change in the same C++ header file, but I hadn’t merged my change yet. He had done this so that the function he wrote would work, which had the app scan from temporary files and delete them at startup. He had changed a variable in a C++ header file to be initialized to the value of “C:\temp.” I went over to Brian’s desk and looked at the changes he had committed. Seconds later, I was greeted by a reboot and a familiar message… “non system disk error.” Once again, my hard drive light started flashing. I spent that day reinstalling and reconfiguring my development environment.įinally, I had everything back in order, so I downloaded the latest source code for the application, along with the changes I had made on my branch, and fired up the app. They reimaged my machine and the next day I had a brand new Windows installation. Probably the hard drive had been corrupted. They took a look at my system and confirmed that something was really wrong. Usually this meant your hard drive had crashed. My PC rebooted automatically, and I was greeted with the message “non system disk error.” Within minutes, an error dialog popped up on my screen followed by the dreaded blue screen of death. I could hear the whirr of the mechanical drive working hard. The application launched, but something strange was happening on my computer. I built the application and ran it to make sure everything was working. Not wanting to be working with outdated code, I pulled down the latest changes to my machine. ![]() ![]() I was working on a few files for a new feature I was building, and my teammate, Brian, had just checked in some changes. One lovely morning, I was happily coding away and decided that I needed to get the latest updates to the code. We were working on a program to automate the testing of HP printers called AntEater. I was working on a small project at HP at the time with just one other developer. I learned fairly quickly on in my software development career that, love it or hate it, knowing your way around source control is a pretty important part of being a programmer. I’ve always had somewhat of a love / hate relationship with source control.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |