I'm a bloody idiot, please help me!!!! ASAP

(in my infinate wisdom) I've managed to load a sketch to my Mega that sends a Tx through the serial port every 500ms, and now I cant load a revised sketch to the board. What can I do?

Never mind, I cursed at it and it worked. I also swaped USB ports before trying to upload which helped. God knows why however it would be interesting if someone could explain.

When the IDE displays the message "Binary sketch size: nnn bytes...", hit the reset button.

I'll give it a go next time I sell my brain for magic beans