Image Number 8 for United States Patent #7538327.
An electronic apparatus having a cable connector unit that makes it possible to attach and detach a connector for connecting a cable for the purpose of performing data communication with an external apparatus includes a lock mechanism for maintaining a connection with the connector in a lock state. The electronic apparatus is capable of detecting a predetermined specific operation on the attached connector. If the specific operation is detected, then pre-processing necessary to detach the connector safely is executed. By releasing the lock mechanism in response to completion of pre-processing, the cable can be removed.