Bug report for creating exe

Started by Brian925, Wed 03/07/2024 22:11:53

Previous topic - Next topic

Brian925

Error: Unable to delete the file 'D:\acres\_Debug\acres.exe'.
Access to the path 'D:\acres\_Debug\acres.exe' is denied.
Version: AGS 3.6.1.25

AGS.Types.CannotDeleteFileException: Unable to delete the file 'D:\acres\_Debug\acres.exe'.
Access to the path 'D:\acres\_Debug\acres.exe' is denied. ---> System.UnauthorizedAccessException: Access to the path 'D:\acres\_Debug\acres.exe' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.SetAttributes(String path, FileAttributes fileAttributes)
   at AGS.Editor.Utilities.TryDeleteFile(String fileName)
   --- End of inner exception stack trace ---
   at AGS.Editor.Utilities.TryDeleteFile(String fileName)
   at AGS.Editor.BuildTargetDebug.DeleteMainGameData(String name)
   at AGS.Editor.AGSEditor.CreateMiniEXEForDebugging(CompileMessages errors)
   at AGS.Editor.AGSEditor.CompileGame(Boolean forceRebuild, Boolean createMiniExeForDebug)
   at AGS.Editor.Components.BuildCommandsComponent.TestGame(Boolean withDebugger)
   at AGS.Editor.Components.BuildCommandsComponent.CommandClick(String controlID)
   at AGS.Editor.GUIController._mainForm_OnMenuClick(String menuItemID)
   at AGS.Editor.MainMenuManager.MenuEventHandler(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

eri0o

I just tried this, creating a new game in the top dir in my other hard drive mapped to D: and it worked.

Have you installed this AGS using the provided setup file? Is this folder a regular other hard drive or is this some network drive? Is there any other software (Windows Explorer, a terminal, ...) with that compiled dir opened at the same time AGS is accessing it?

Brian925

I have had this issue on 3 different computers, which leads me to believe that my file is corrupted, which is a mild crisis since I've been working on this on and off since 2006.

I just installed the newest patch of AGS on a new computer. My AGS files are on a flash drive. I can't currently find any other folders it's accessing. Thought I might have the game open or something, but just 1 ags file.


Crimson Wizard

_Debug\acres.exe is a temporary exe created for game testing. You may try to delete it by hand, and see if that helps.

SMF spam blocked by CleanTalk