If your programmable device (ATMega 8) is very hot, you might want to check the connections that you made. It's possible that you made a mistake and inverted the VCC pin with other one. In this matter, download the data-sheet from the manufacturer in order to make sure that your pin usage is accurate. The behavior that you encountered can't be caused by a malfunction of the programming software.