Jump to content

Error when re-saving


Recommended Posts

Hi. 

When re-saving the file an error occurs:

 

 

System.AggregateException: Произошла одна или несколько ошибок. ---> System.IO.IOException: Параметр задан неверно.

 
 
 
   в System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
 
   в System.IO.FileStream.get_Length()
 
   в PaintDotNet.IO.GuardedStream.get_Length() в D:\src\pdn\src\Base\IO\GuardedStream.cs:строка 291
 
   в System.Drawing.UnsafeNativeMethods.ComStreamFromDataStream.Seek(Int64 offset, Int32 origin)
 
   --- Конец трассировки внутреннего стека исключений ---
 
   в PaintDotNet.Controls.DocumentWorkspace.<>c__DisplayClass244_0.<DoSave>b__2() в D:\src\pdn\src\PaintDotNet\Controls\DocumentWorkspace.cs:строка 3005
 
   в PaintDotNet.Functional.Func.Try(Action f) в D:\src\pdn\src\Base\Functional\Func.cs:строка 174
 
---> (Внутреннее исключение #0) System.IO.IOException: Параметр задан неверно.
 
 
 
   в System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
 
   в System.IO.FileStream.get_Length()
 
   в PaintDotNet.IO.GuardedStream.get_Length() в D:\src\pdn\src\Base\IO\GuardedStream.cs:строка 291
 
   в System.Drawing.UnsafeNativeMethods.ComStreamFromDataStream.Seek(Int64 offset, Int32 origin)<---
 
 
 
---> (Внутреннее исключение #1) System.IO.IOException: Неверная функция.
 
 
 
   в System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
 
   в System.IO.FileStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
 
   в PaintDotNet.IO.GuardedStream.Write(Byte[] buffer, Int32 offset, Int32 count) в D:\src\pdn\src\Base\IO\GuardedStream.cs:строка 442
 
   в System.Drawing.UnsafeNativeMethods.ComStreamFromDataStream.Write(Byte[] buffer, Int32 length)<---

You have to save the file with a new name.
On the old version (I think 3.5.4) such error was not.

 

What kind of way I know. The D drive exists. The program is installed in "C:\Program Files\Paint.NET\PaintDotNet.exe"

D:\src\pdn\src\Base\IO\GuardedStream.cs

D:\src\pdn\src\PaintDotNet\Controls\DocumentWorkspace.cs

...

 

Run as Administrator did not return any results.

 

Thank you.

 

Tehnical information:

 

Application paint.net версия 4.0.9 (Final 4.9.5848.30436)

Build Date 5 января 2016 г.
 
Аппаратное ускорение отрисовки (GPU) True
Анимация True
DPI 96,00 (1,00x scale)
Язык ru
 
OS Windows 7 Service Pack 1 (6.1.7601.65536)
.NET Runtime 4.0.30319.42000
Physical Memory 5 119 MB
 
CPU AMD Athlon 64 X2 Dual Core Processor 5000+
    Architecture x64 (64-bit)
    Process Mode 64-bit
    Speed ~2611 MHz
    Cores / Threads 2
    Features DEP, SSE, SSE2, SSE3
 
Video Card NVIDIA GeForce 9500 GT
    Dedicated Video RAM 493 MB
    Dedicated System RAM 0 MB
    Shared System RAM 2 303 MB
    Vendor ID 0x10DE
    Device ID 0x0640
    Subsystem ID 0x604619DA
    Revision 161
    LUID 0x000086B9
    Flags None
    Outputs 1

 

Edited by Pavel
Link to comment
Share on other sites

Параметр задан неверно

translates to

The parameter is incorrect

 

This is presumably a disk failure, or a bug in WIC and GDI+ (which Paint.NET uses for saving many image types).

  • Upvote 2

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 presumably a disk failure...

 

Unbelievable... Really, I have a faulty HDD... want to copy the image to another HDD as the problem disappears and everything is perfectly maintained.

Strange, but the standard Microsoft Paint and Paint.NET ver 3.5.4 worked fine without giving any errors.

Thank You Rick!

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.

×
×
  • Create New...