(Solved!) Unhandled Exception: Cannot access a closed file (unable to save work)

Da Slippery Minx

New member
Edit: 4-14-2020: I fixed the issue, I tried resettinging the script settings and it seemed to work; though now all the scripts are gone. I'll figure it out some other day.

Hello all, I'm trying to save my work and I keep getting an error, technically 2, and it doesn't matter how I try to save. Error codes are as follows; pic for error code 2 has the game title blurred out on purpose:

ATTACH]First error code

ATTACH]Second error code


What may have lead to this issue: I was following the 2nd tutorial vid on YT (https://www.youtube.com/watch?v=5s8SLlNUKnA) Getting Started Assets, and I was trying to apply collusion and such to the asset by the following: project--> project settings--> script settings --> Tile Collusion 01 - Routines\Basic\ModuleScripts\TileScripts\Adventure\SolidBehavior.asm --> add [Name: Green Tree, then clicked ok.] Nothing really happened, I also don't have anything to setup IN the game to try it out, but I got no message, and double clicking on the SoildBehavior.asm yielded no results/actions either (where as the video said/showed something happening.

Thank you all in advance for the help, I really don't want to start of because I've been setting up color pallettes and assets all night and I don't want to start over.

The full info of the 2nd error code:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ObjectDisposedException: Cannot access a closed file.
at System.IO.FileStream.Flush(Boolean flushToDisk)
at MysticSearchesTool.MysticSearchToolMainDialog.saveToolStripMenuItem_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStrip.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.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18331 built by: FX45GDRSTAGE
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
NESMaker
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/Darren%20KF/Desktop/NESmaker_4_1_5/NESMaker.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18331 built by: FX45GDRSTAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18331 built by: FX45GDRSTAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18331 built by: FX45GDRSTAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
NesMakerPluginBase
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/Darren%20KF/Desktop/NESmaker_4_1_5/NesMakerPluginBase.DLL
----------------------------------------
System.Xml.Linq
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18331 built by: FX45GDRSTAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18331 built by: FX45GDRSTAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18331 built by: FX45GDRSTAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18331 built by: FX45GDRSTAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.ComponentModel.Composition
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18331
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.Composition/v4.0_4.0.0.0__b77a5c561934e089/System.ComponentModel.Composition.dll
----------------------------------------
UtilityPlugin
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/USERS/DARREN%20KF/DESKTOP/NESMAKER_4_1_5/PLUGINS/UTILITYPLUGIN.DLL
----------------------------------------
NAudio
Assembly Version: 1.8.4.0
Win32 Version: 1.8.4.0
CodeBase: file:///C:/Users/Darren%20KF/Desktop/NESmaker_4_1_5/NAudio.DLL
----------------------------------------
System.Net.Http
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18331 built by: FX45GDRSTAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Net.Http/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.dll
----------------------------------------
MetadataViewProxies_37362d7d-4c24-49f7-ab39-ed003170f302
Assembly Version: 0.0.0.0
Win32 Version: 4.0.30319.18331
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.Composition/v4.0_4.0.0.0__b77a5c561934e089/System.ComponentModel.Composition.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18331 built by: FX45GDRSTAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
 
Top Bottom