mirror of
https://github.com/NickeManarin/ScreenToGif.git
synced 2026-04-25 15:15:51 +03:00
[GH-ISSUE #459] Insert Error - The specified path, file name, or both are too long. #381
Labels
No labels
copy cats
duplicated
future feature
pull-request
⬜ Accepted
⬜ Completed
⬜ Help Wanted 💪
⬜ In Progress
⬜ Missing Details
⬜ Pending
⬜ Waiting For Answer ⏳
🆕 feature preview
🔷 Bug 🐛
🔷 Out Of Scope
🔷 Out Of Scope
🔷 Question
🔷Enhancement
🔷Enhancement
🔷Invalid / External
🔷Knowledge Base
🔷Won't Fix
🕑 High
🕑 High
🕑 High
🕕 Medium
🕙 Low
🕛 Critical
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ScreenToGif#381
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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, List1 positions)bei ScreenToGif.Windows.Other.Insert.InsertFrames(Boolean after)
@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 👍
@dewinterjack commented on GitHub (Jul 18, 2019):
I am looking into this. Could you provide some logs?
@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