Re: [go-nuts] go build - Access is denied - Windows 7x64

1,156 views
Skip to first unread message

minux

unread,
May 15, 2013, 8:39:13 AM5/15/13
to Neo Angelus TheCrypts, golan...@googlegroups.com

On Wed, May 15, 2013 at 7:38 PM, Neo Angelus TheCrypts <lordneo...@gmail.com> wrote:
I've got a problem with Go on Windows 7 (x64) and was wondering if anyone can help me?

After building with go build ... I get the correct output file. (*.exe) The new executable can be run, but can't be deleted or build again. (Because it can't be removed.)
when you failed to delete the file, was the program still running? 
if it's, the the behavior is correct. you need to kill the process before removing the executable.

Neo Angelus TheCrypts

unread,
May 15, 2013, 8:44:07 AM5/15/13
to golan...@googlegroups.com, Neo Angelus TheCrypts
No not running. I can't even build two times in a row. (so without running the executable in between.)

Neo Angelus TheCrypts

unread,
May 15, 2013, 8:48:46 AM5/15/13
to golan...@googlegroups.com
Fixed the problem: the Application Experience service was disabled. (Don't know why) Thanks to reddit I found out with Handle that the file was keeping locked by the system (PID:4) and searching that gave me the solution.

Thank you for your time everyone!

小菜

unread,
Jun 25, 2014, 11:15:36 PM6/25/14
to golan...@googlegroups.com

I  have the same problem, after building with go build, I get the correct output file. (*.exe) The new executable can be run, then I use the keyboard keys CTRL+ C to  terminate  the program, and then I re execute "go build", but always prompt "go install changelog: open changelog.exe: Access is denied." . Prior to the generation of the executable file cannot be removed, unless it is to restart the computer.

This is not a problem in my previous go version 1.2, after upgrading to 1.3, had this problem always, my operating system is windows7, a 32 bit operating system.


I  don't known why.







在 2013年5月15日星期三UTC+8下午7时38分41秒,Neo Angelus TheCrypts写道:
Greetings everyone,


I've got a problem with Go on Windows 7 (x64) and was wondering if anyone can help me?

After building with go build ... I get the correct output file. (*.exe) The new executable can be run, but can't be deleted or build again. (Because it can't be removed.)


I first noticed the problem in LiteIDE, when I couldn't build after the first initial build, but thought: ``Maybe some incorrect settings.''.

But I tested it by building manually:
  • The file can't be removed in explorer.
  • The file can't be edited.
  • The file CAN be run.
  • Rebuilding gives: Access is denied.
  • Right mouse shows the admin required icon for rename/delete, but even with elevated privileges it doesn't work. (Just shows a try-again dialog)

Now the strange thing it 'reverts' back to a 'normal' file after a short while. It is as if something is still using the file for a short(2-3m) while after a build.

I've tried building executables with Visual Studio 2008&2010 and they don't have the same problem. (Same with Java)

I found one other mention of the problem on stackoverflow, sadly no solution. Does anyone have any idea what it might be? Or what might cause these problems?

brainman

unread,
Jun 25, 2014, 11:26:25 PM6/25/14
to golan...@googlegroups.com
Ctrl + C does not always terminate program. Did you look for your program in "task manager"?

Alex

小菜

unread,
Jun 25, 2014, 11:28:10 PM6/25/14
to golan...@googlegroups.com
 the process manager could not see my termination process

brainman

unread,
Jun 25, 2014, 11:35:31 PM6/25/14
to golan...@googlegroups.com
Than it is antivirus, " Application Experience " or whatever else is running on your computer. Perhaps use http://technet.microsoft.com/en-au/sysinternals/bb896655.aspx to discover what. That is what the original poster did by the sound of it.

Alex
Message has been deleted

小菜

unread,
Jun 25, 2014, 11:41:59 PM6/25/14
to golan...@googlegroups.com
no  any  antivirus software , It looks like  the executable file  is locked by the system.
It can't run again  ,  unless to restart the computer
Message has been deleted

小菜

unread,
Jun 26, 2014, 12:00:38 AM6/26/14
to golan...@googlegroups.com

The problem is solved, it is a hidden garbage antivirus software caused.

I solve the problem through this tool: http://technet.microsoft.com/en-au/sysinternals/bb896653

Reply all
Reply to author
Forward
0 new messages