There are several answers to this question. Some have been touched on already. But two that have not are 1. Reverse Polarity and 2. Corrosion at the spade clips of the shore power cords.
Reverse polarity will in fact cause an over load and that will overheat the connections. Simple solution is to get a polarity cube, any ACE Hardware, that you keep plugged in to a 110 V outlet in the boat and every time you get on the boat look at it. It is simple to use. It has three lights and it has instructions on the cube. Two amber and one red. The order that the lights are lit indicate if there is a problem and if so which wires are crossed or reversed. A repair in the marina while you were away from the boat can cause a problem on a shore power out let you have used for years. Simple and easy to use and makes checking at new marinas as you travel easy.
Corrosion is also a problem. There are several things that can cause the corrosion. Loose connections, as in worn connectors, and moisture. Imagine that, moisture in a salt water environment, who'd thunk? It is easier to fix than one may expect. Always use the connecting rings supplied with the shore power cords and make sure they are tight or at least snug. But before putting them together use a Dielectric Grease. It can be bought at Radio Shack for a couple of bucks a tube. Smear it on the spade pins and force a little down the female holes as well. The spade pins will make contact through the grease but the grease will keep out any water intrusion or moisture which is most important. I have been using the same two 25' cords for my shore power for 7 years +, 365, 24-7 and have not had any problems.
Hope this helps.