Periodically, Mega com port isnt' detected by arduino IDE?

I have an irritating problem. From time to time, the Arduino IDE don't work like it should. :expressionless:

What happens is I leave the IDE open, then come back to it later on. I go to updated my code and it says "Com 3 already in use by another application"

I then close the IDE, and reopen it. When i reopen it, the "serial port" section under tools is greyed out. However, under windows hardware, com 3 is working and shows the MEGA as one would expect (I don't have any think else comming from the "Ports" section.

I usually end up unplugging and pressing the reset button a couple of times and it starts working again. But i'm loosing 5 minutes each time I have to deal with this problem, and it breaks my already dim train of thought.

Any ideas?

Which OS and arduino IDE version?

Similar problem noted with Uno, win 8.1, ide 1.0.5 r2

To get around this I have to physically unplug the arduino from the usb and then plug it in again

IDE ~ 1.0.5-r2
Windows 8.1

darned. NOW unplugging not working.

close IDE, unplug arduino, plug in arduino, reset arduino, open IDE.

If problem continue, try other USB port. I had problems with PC's front USB ports. Everything worked nicely with USB behind PC.

If USB port change dont help, try to uninstall arduino drivers from system management (Dont ask how. I dont know Win8.1).
After that try how Codebender.cc works. Install drivers from there and check will codebender work. For me it works better than Arduino IDE. I had worked with two arduinos same time, without any problems. Ofc it is online tool and if you dont pay, your code is public not private.

atleast from Windows7 "computer" window, you should see what port are connected to arduino., when you connect arduino. Good luck for hunting problem.

-Jafarin

Thanks for your reply, but i find the cloud way more annoying than it's worth.

I've got it plugged into a USB hub...