"can't open device" when uploading, but Serial Monitor works

Hi there!
Just wanted to try something, downloaded the latest IDE and got my old Duemilanove out of the closet. Uploaded a sketch, which includes some Serial communication with 115200 baud, without problems.

Then I changed something in the script and wanted to upload again. I got

avrdude: ser_open(): can't open device "\\.\COM3": Access denied

interestingly, when I switch over to the Serial Monitor, I receive messages without problem. I can even send messages to the Arduino. However, I can't seem to upload a sketch again. I tried rebooting a couple times, reinstalled the IDE. I also tried to reset the Arduino before the upload starts, without luck.

It seems like the Serial Monitor is using the Serial Port and doesn't release it to upload a sketch? Or am I misinterpreting this?

Thanks!

Update: Managed to kill the Serial Monitor through the Task Manager. Upload worked again!

So I guess this is a bug report?

it is normal. only one device can work at a time. stop it and other device will be able to connect.
sometimes IDE greyout serial monitor while upload, sometimes not and it must be closed manually.

Hi @GoingForGold. The Arduino IDE developers are tracking this bug here:

If you have a GitHub account, you can subscribe to that issue to get notifications of any new developments related to this subject.