Open Xenthio opened 5 years ago
Hi Xenthio,
I've attempted a fix for this and it will be in the next release.
In order to show the thumbnail images for the chapters MM needs to convert them to a format it understands and uses an external utility for that. The utility creates a png from the vtf that Source uses. MM then reads in the png into memory and delete the file when it's done (so as not to clutter up your disk space). It's the deletion of the png that has the exception.
My guess is that the utility is still keeping a hold of it, somehow. I've put a try/catch around the deletion, so it won't crash if it cannot delete it, you'll just end up with some trash temp files knocking around. A bodge, but the best I can think to do for now.
Sorry for the delay in answering. I have been out of the modding scene I finished work on Exterminatus over a year ago.
oh wow this is an old issue i forgot i posted it lol
Says something about not being able to edit the file because its being used by another process, how ever source mod maker is the only process that's trying to edit it
See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
** Exception Text ** System.IO.IOException: The process cannot access the file 'D:\ModMaker_V2.1\ModMaker_V2\VTFBin\chapter1.png' because it is being used by another process. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.File.InternalDelete(String path, Boolean checkHost) at System.IO.File.Delete(String path) at LibModMaker.VTFConverter.ToBitmap(String FilePath) at ModMaker.ChapterTool.OpenBitmap(String FilePath) at ModMaker.ChapterTool.GetThumbnailBitmap(String FilePath) at ModMaker.ChaptersForm.txtThumbnailPath_TextChanged(Object sender, EventArgs e) at System.Windows.Forms.Control.OnTextChanged(EventArgs e) at System.Windows.Forms.TextBoxBase.OnTextChanged(EventArgs e) at System.Windows.Forms.Control.set_Text(String value) at System.Windows.Forms.TextBoxBase.set_Text(String value) at System.Windows.Forms.TextBox.set_Text(String value) at ModMaker.ChaptersForm.set_SelectedChapter(Int32 value) at ModMaker.ChaptersForm.set_Chapters(ChapterList value) at ModMaker.ChapterTool.Launch(SourceMod Game) at ModMaker.ModView.HelperList_ItemActivate(Object sender, EventArgs e) at System.Windows.Forms.ListView.OnItemActivate(EventArgs e) at System.Windows.Forms.ListView.WmReflectNotify(Message& m) at System.Windows.Forms.ListView.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)
** Loaded Assemblies ** mscorlib Assembly Version: 4.0.0.0 Win32 Version: 4.7.3260.0 built by: NET472REL1LAST_C CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
ModMaker Assembly Version: 2.0.0.0 Win32 Version: 2.0.0.0 CodeBase: file:///D:/ModMaker_V2.1/ModMaker_V2/ModMaker.exe
System.Windows.Forms Assembly Version: 4.0.0.0 Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
System Assembly Version: 4.0.0.0 Win32 Version: 4.7.3314.0 built by: NET472REL1LAST_B CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
System.Drawing Assembly Version: 4.0.0.0 Win32 Version: 4.7.3056.0 built by: NET472REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
System.Configuration Assembly Version: 4.0.0.0 Win32 Version: 4.7.3056.0 built by: NET472REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
System.Core Assembly Version: 4.0.0.0 Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C 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.7.3056.0 built by: NET472REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
LibModMaker Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///D:/ModMaker_V2.1/ModMaker_V2/LibModMaker.DLL
SevenZipSharp Assembly Version: 0.64.3890.29348 Win32 Version: 0.64.3890.29348 CodeBase: file:///D:/ModMaker_V2.1/ModMaker_V2/SevenZipSharp.DLL
TargaImage Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///D:/ModMaker_V2.1/ModMaker_V2/TargaImage.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:
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.