Author Topic: SOLVED... Error: access to path  (Read 272 times)

Slasher

  • slasher
    • I can help with AGS tutoring
    •  
    • Lifetime Achievement Award Winner
    •  
    • I can help with scripting
    •  
    • I can help with story design
    •  
    • Slasher worked on a game that was nominated for an AGS Award!
SOLVED... Error: access to path
« on: 02 Jun 2018, 19:24 »
This is becoming a regular occurrence:

Unexpected error: Access to the path 'C:\Users\PC-user\Documents\GROUNDHOG\Compiled\Windows\GROUNDHOG.exe' is denied.
« Last Edit: 22 Jun 2018, 21:35 by Slasher »

Re: Error: access to path
« Reply #1 on: 02 Jun 2018, 19:29 »
What is it you're trying to do? Is this in the AGS Editor?

Try running AGS as administrator and see if it does it.

Re: Error: access to path
« Reply #2 on: 02 Jun 2018, 19:39 »
Generally, this is when you have an Explorer window open, looking at that location, and that is locking the file.
If you just close that window, it should be okay.

Crimson Wizard

  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    •  
    • Lifetime Achievement Award Winner
    •  
    • Crimson Wizard worked on a game that was nominated for an AGS Award!
      Crimson Wizard worked on a game that won an AGS Award!
Re: Error: access to path
« Reply #3 on: 22 Jun 2018, 20:07 »
Generally, this is when you have an Explorer window open, looking at that location, and that is locking the file.
If you just close that window, it should be okay.

I was testing custom game icons recently, and immediately reproduced this error by having Compiled folder opened in Explorer.

Is there any available solution to prevent this (programmatically), like asking system for more rights etc?

Re: Error: access to path
« Reply #4 on: 22 Jun 2018, 21:23 »
As far as I know, when you get denied access, the only thing to do is retry again a little later, and then give up after a few tries. At a guess, either the game compiler isn't requesting an exclusive lock, or the handle is getting released part way through the process (before a second compilation stage requests a second handle).

Slasher

  • slasher
    • I can help with AGS tutoring
    •  
    • Lifetime Achievement Award Winner
    •  
    • I can help with scripting
    •  
    • I can help with story design
    •  
    • Slasher worked on a game that was nominated for an AGS Award!
SOLVED...Re: Error: access to path
« Reply #5 on: 22 Jun 2018, 21:32 »
I should have answered earlier...

Malwarebytes decided to auto upgrade around the time of the error.....I did not think of any consequences of the upgrade..

Anyhow, I uninstalled it and the error seems to have gone...

cheers
« Last Edit: 22 Jun 2018, 21:34 by Slasher »

Crimson Wizard

  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    •  
    • Lifetime Achievement Award Winner
    •  
    • Crimson Wizard worked on a game that was nominated for an AGS Award!
      Crimson Wizard worked on a game that won an AGS Award!
Re: SOLVED... Error: access to path
« Reply #6 on: 22 Jun 2018, 21:47 »
I should have answered earlier...

Malwarebytes decided to auto upgrade around the time of the error.....I did not think of any consequences of the upgrade..

Anyhow, I uninstalled it and the error seems to have gone...

cheers

This was in another thread: http://www.adventuregamestudio.co.uk/forums/index.php?topic=56129.0

There are two different errors, and the error described in this topic is not gone, it has always been there. As I noted above, I got this error by simply testing custom icon.