Critical temperature in the thermodynamics of extended objects