FAQ
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<http://stackoverflow.com/questions/14511495/go-language-access-is-denied-on-trying-to-go-install>,
sadly no solution. Does anyone have any idea what it might be? Or what
might cause these problems?

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • Minux at May 15, 2013 at 12:39 pm

    On Wed, May 15, 2013 at 7:38 PM, Neo Angelus TheCrypts 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.

    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
    For more options, visit https://groups.google.com/groups/opt_out.
  • Neo Angelus TheCrypts at May 15, 2013 at 12:44 pm
    No not running. I can't even build two times in a row. (so without running
    the executable in between.)

    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
    For more options, visit https://groups.google.com/groups/opt_out.
  • Neo Angelus TheCrypts at May 15, 2013 at 12:48 pm
    Fixed the problem: the Application Experience<http://wiki.blackviper.com/wiki/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!

    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedMay 15, '13 at 12:15p
activeMay 15, '13 at 12:48p
posts4
users2
websitegolang.org

2 users in discussion

Neo Angelus TheCrypts: 3 posts Minux: 1 post

People

Translate

site design / logo © 2023 Grokbase