Jump to content

Beta 3 crashes on "save to tga"


Recommended Posts

Crash log for Paint.NET v2.5 (Beta 3 Release build 2.5.2108.39014)

Time of crash: 10/10/2005 1:23:15 PM

OS version: 5.1.2600.0

.NET Framework version: 1.1.4322.2032

Exception details:

System.InvalidCastException: Specified cast is not valid.

at PaintDotNet.Data.TgaFileType.TgaSaveConfigWidget.InitWidgetFromToken(SaveConfigToken token)

at PaintDotNet.SaveConfigWidget.set_Token(SaveConfigToken value)

at PaintDotNet.SaveConfigDialog.set_FileType(FileType value)

at PaintDotNet.MainForm.GetSaveConfigToken(FileType fileType, SaveConfigToken saveConfigToken, SaveConfigToken& newSaveConfigToken)

at PaintDotNet.MainForm.DoSaveAsDialog(String& newFileName, FileType& newFileType, SaveConfigToken& newSaveConfigToken)

at PaintDotNet.MainForm.DoSaveAs()

at PaintDotNet.MainForm.menuFileSaveAs_Click(Object sender, EventArgs e)

at System.Windows.Forms.MenuItem.OnClick(EventArgs e)

at System.Windows.Forms.MenuItemData.Execute()

at System.Windows.Forms.Command.Invoke()

at System.Windows.Forms.Control.WmCommand(Message& m)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.ScrollableControl.WndProc(Message& m)

at System.Windows.Forms.ContainerControl.WndProc(Message& m)

at System.Windows.Forms.Form.WndProc(Message& m)

at PaintDotNet.PdnBaseForm.OurWndProc(Message& m)

at PaintDotNet.PdnBaseForm.WndProc(Message& m)

at PaintDotNet.MainForm.WndProc(Message& m)

at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)

at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)

at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

------------------------------------------------------------------------------

I believe this is the same crash log. I encountered this error when saving as a TGA, replacing an already saved TGA image. When propted if I wanted to replace the existing file, I selected "Yes." The screen froze, stuck there a while, blanked out, then popped up an error box telling me to look at the pdncrashlog file.

It let me save the first TGA, but after crashing on the replace, I have as of yet been unable to save another TGA, encountering the same crash log each time.

I hope that sheds some light on the problem!

Dan

I am not a mechanism, I am part of the resistance;

I am an organism, an animal, a creature, I am a beast.

~ Becoming the Archetype

Link to comment
Share on other sites

In the meantime, as an [obnoxious] workaround, you can delete the following registry key before you save a TGA:

HKEY_CURRENT_USER \ Software \ Paint.NET \ PaintDotNet.Data.TgaFileType.TgaFileType

There seems to be a problem after deserializing this data, but if it's not there then everything works fine.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

This is the most bizarre bug. Anyway, I have a better workaround for now.

Go to the command line and type the following:

%WINDIR%\Microsoft.Net\Framework\v1.1.4322\gacutil.exe /u TgaFileType

You should see output similar to the following:

Microsoft (R) .NET Global Assembly Cache Utility.  Version 1.1.4318.0
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.


Assembly: TgaFileType, Version=2.5.2108.39008, Culture=neutral, PublicKeyToken=85cad16301864386, Cus
tom=null
Uninstalled: TgaFileType, Version=2.5.2108.39008, Culture=neutral, PublicKeyToken=85cad16301864386,
Custom=null

Number of items uninstalled = 1
Number of failures = 0

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

Alrighty. I gave that a shot, and it seems to work fine now.

I did, however, have to make one small change. On my computer, the path was:

%WINDIR%\Microsoft.NET\Framework\v1.1.4322\gacutil.exe

I'm not sure why there was a difference, but just so other users are aware: If you attempt this and the specified path cannot be found, check in your WINDOWS directory and scout out the proper path for your specific system.

I am not a mechanism, I am part of the resistance;

I am an organism, an animal, a creature, I am a beast.

~ Becoming the Archetype

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...