Arduino Leonardo: problem with Serial Communication

Already done... But still not work..But I've seen a thing:
when i disconnect and riconnect the arduino via USB it first appear on COM 9 ("Arduino Leonardo Bootloader"), then after a few seconds it automatically disconnect and reappear on COM 10 like "Arduino Leonardo".
If I open the serial monitor in the first seconds when it is on COM 9 I can send a character and on the serial monitor appear a "?", but still no send the message contained in the sketch