It is also possible there is a bad connection to the compressor when it gets warm. Get a meter and monitor the compressor voltage. When it is cold, voltage to it should be 115 volts, when hot, should be the same when it tries to start.
__________________
-
|