[GH-ISSUE #459] Insert Error - The specified path, file name, or both are too long. #381

Open
opened 2026-02-26 09:31:13 +03:00 by kerem · 3 comments
Owner

Originally created by @ghost on GitHub (Mar 5, 2019).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/459

Hi, when i try to insert frames, i get a error message:

Something Wrong Happened
The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters

My files (and screentogif.exe also) are in: D:\Animation****. What do i do wrong?

Log File:
► Title -
Insert Error
▬ Message -
Der angegebene Pfad und/oder Dateiname ist zu lang. Der vollständig qualifizierte Dateiname muss kürzer als 260 Zeichen und der Pfadname kürzer als 248 Zeichen sein.
○ Type -
System.IO.PathTooLongException
♦ [Version] Date/Hour -
[2.16] 03/05/2019 13:24:59
▲ Source -
mscorlib
▼ TargetSite -
Int32 GetFullPathName()
♠ StackTrace -
bei System.IO.PathHelper.GetFullPathName()
bei System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
bei System.IO.Path.GetFullPathInternal(String path)
bei System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
bei ScreenToGif.Util.ActionStack.SaveState(EditAction action, List1 frames, List1 positions)
bei ScreenToGif.Windows.Other.Insert.InsertFrames(Boolean after)

Originally created by @ghost on GitHub (Mar 5, 2019). Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/459 Hi, when i try to insert frames, i get a error message: **Something Wrong Happened The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters** My files (and screentogif.exe also) are in: D:\Animation\****. What do i do wrong? **Log File:** ► Title - Insert Error ▬ Message - Der angegebene Pfad und/oder Dateiname ist zu lang. Der vollständig qualifizierte Dateiname muss kürzer als 260 Zeichen und der Pfadname kürzer als 248 Zeichen sein. ○ Type - System.IO.PathTooLongException ♦ [Version] Date/Hour - [2.16] 03/05/2019 13:24:59 ▲ Source - mscorlib ▼ TargetSite - Int32 GetFullPathName() ♠ StackTrace - bei System.IO.PathHelper.GetFullPathName() bei System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths) bei System.IO.Path.GetFullPathInternal(String path) bei System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost) bei ScreenToGif.Util.ActionStack.SaveState(EditAction action, List`1 frames, List`1 positions) bei ScreenToGif.Windows.Other.Insert.InsertFrames(Boolean after)
Author
Owner

@ghost commented on GitHub (Mar 13, 2019):

Hello, i found out what it was. Since I recorded my animation in several sequences, i inserted a frame with a red background between the scenes. I copied the previous one and added it to the end. When i opened the red background image frame, i noticed that the image filename at C:\Temp\ScreenToGif \Recording\2019-03-13 10-42-26 was very long. That probably caused the error. Unfortunately, i could not delete the frames because of the error. That's why i have exported my scenes individually and created a new project.

Thanks for ScreenToGif 👍

<!-- gh-comment-id:472357843 --> @ghost commented on GitHub (Mar 13, 2019): Hello, i found out what it was. Since I recorded my animation in several sequences, i inserted a frame with a red background between the scenes. I copied the previous one and added it to the end. When i opened the red background image frame, i noticed that the image filename at C:\Temp\ScreenToGif \Recording\2019-03-13 10-42-26 was very long. That probably caused the error. Unfortunately, i could not delete the frames because of the error. That's why i have exported my scenes individually and created a new project. Thanks for ScreenToGif :+1:
Author
Owner

@dewinterjack commented on GitHub (Jul 18, 2019):

I am looking into this. Could you provide some logs?

<!-- gh-comment-id:513005612 --> @dewinterjack commented on GitHub (Jul 18, 2019): I am looking into this. Could you provide some logs?
Author
Owner

@SEWeiTung commented on GitHub (Jun 25, 2022):

@NickeManarin : AFAIK, this can be closed because our project net framework's version is more than 4.6.2. And this cannot happen until the max length is more than int.MAXLENGTH. I don't think it possible :)

For more, please see: https://docs.microsoft.com/en-us/dotnet/api/system.io.pathtoolongexception?view=net-6.0

<!-- gh-comment-id:1166168768 --> @SEWeiTung commented on GitHub (Jun 25, 2022): @NickeManarin : AFAIK, this can be closed because our project net framework's version is more than 4.6.2. And this cannot happen until the max length is more than int.MAXLENGTH. I don't think it possible :) For more, please see: https://docs.microsoft.com/en-us/dotnet/api/system.io.pathtoolongexception?view=net-6.0
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ScreenToGif#381
No description provided.