Git Product home page Git Product logo

Comments (8)

peteraritchie avatar peteraritchie commented on July 24, 2024

What is the detail of the exception? Usually that tells you exactly why it occurred.

from longpath.

rootchord avatar rootchord commented on July 24, 2024

Here is the detail:

System.AccessViolationException was unhandled
HResult=-2147467261
Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Source=FRAC
StackTrace:
at Pri.LongPath.NativeMethods.GetSecurityDescriptorLength(IntPtr byteArray)
at Pri.LongPath.Directory.GetAccessControl(String path, AccessControlSections includeSections) in REDACTED\Documents\Visual Studio 2010\Projects\FRAC\FRAC\LongPath\Directory.cs:line 914
at Pri.LongPath.Directory.GetAccessControl(String path) in
REDACTED\Documents\Visual Studio 2010\Projects\FRAC\FRAC\LongPath\Directory.cs:line 868
at Pri.LongPath.DirectoryInfo.GetAccessControl() in
REDACTED\Documents\Visual Studio 2010\Projects\FRAC\FRAC\LongPath\DirectoryInfo.cs:line 208
at FRAC.FRACMainForm.CheckAccess(DirectoryInfo directory) in REDACTED\Documents\Visual Studio 2010\Projects\FRAC\FRAC\Form1.cs:line 156
at FRAC.FRACMainForm.ProcessFolder(DirectoryInfo root) in
REDACTED\Documents\Visual Studio 2010\Projects\FRAC\FRAC\Form1.cs:line 68
at FRAC.FRACMainForm.ProcessFolderRecursively(DirectoryInfo root) in REDACTED\Documents\Visual Studio 2010\Projects\FRAC\FRAC\Form1.cs:line 131
at FRAC.FRACMainForm.ProcessFolderRecursively(DirectoryInfo root) in REDACTED\Documents\Visual Studio 2010\Projects\FRAC\FRAC\Form1.cs:line 141
at FRAC.FRACMainForm.ProcessFolderRecursively(DirectoryInfo root) in REDACTED\Documents\Visual Studio 2010\Projects\FRAC\FRAC\Form1.cs:line 141
at FRAC.FRACMainForm.ProcessFolderRecursively(DirectoryInfo root) in REDACTED\Documents\Visual Studio 2010\Projects\FRAC\FRAC\Form1.cs:line 141
at FRAC.FRACMainForm.ProcessFolderRecursively(DirectoryInfo root) in REDACTED\Documents\Visual Studio 2010\Projects\FRAC\FRAC\Form1.cs:line 141
at FRAC.FRACMainForm.ProcessFolderRecursively(DirectoryInfo root) in REDACTED\Documents\Visual Studio 2010\Projects\FRAC\FRAC\Form1.cs:line 141
at FRAC.FRACMainForm.ProcessFolderRecursively(DirectoryInfo root) in REDACTED\Documents\Visual Studio 2010\Projects\FRAC\FRAC\Form1.cs:line 141
at FRAC.FRACMainForm.ProcessFolderRecursively(DirectoryInfo root) in REDACTED\Documents\Visual Studio 2010\Projects\FRAC\FRAC\Form1.cs:line 141
at FRAC.FRACMainForm.ProcessFolderRecursively(DirectoryInfo root) in REDACTED\Documents\Visual Studio 2010\Projects\FRAC\FRAC\Form1.cs:line 141
at FRAC.FRACMainForm.ProcessFolderRecursively(DirectoryInfo root) in REDACTED\Documents\Visual Studio 2010\Projects\FRAC\FRAC\Form1.cs:line 141
at FRAC.FRACMainForm.ProcessFolderRecursively(DirectoryInfo root) in REDACTED\Documents\Visual Studio 2010\Projects\FRAC\FRAC\Form1.cs:line 141
at FRAC.FRACMainForm.ProcessFolderRecursively(DirectoryInfo root) in REDACTED\Documents\Visual Studio 2010\Projects\FRAC\FRAC\Form1.cs:line 141
at FRAC.FRACMainForm.ProcessFolderRecursively(DirectoryInfo root) in REDACTED\Documents\Visual Studio 2010\Projects\FRAC\FRAC\Form1.cs:line 141
at FRAC.FRACMainForm.StartButton_Click(Object sender, EventArgs e) in REDACTED\Documents\Visual Studio 2010\Projects\FRAC\FRAC\Form1.cs:line 217
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at FRAC.Program.Main() in REDACTED\Documents\Visual Studio 2010\Projects\FRAC\FRAC\Program.cs:line 18
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:

from longpath.

rootchord avatar rootchord commented on July 24, 2024

Sorry, accidentally closed it.

Any Ideas?

from longpath.

rootchord avatar rootchord commented on July 24, 2024

Still having the same issue, any guidance?

from longpath.

peteraritchie avatar peteraritchie commented on July 24, 2024

Unfortunately I'm unable to reproduce this so it's hard to do the right thing when it happens. Is there any other detail you can provide, like type of file system being accessed (local, share, soft-link, etc.)? Is it within a domain (security policies that get pushed, etc.). What type of security is on the directories being scanned?

from longpath.

rootchord avatar rootchord commented on July 24, 2024

Well upon further investigation it looks like it's related to the issue with UNC paths. The error happens as soon as the UNC path exceeds 250 characters. If this sounds right, i'll close this issue.

from longpath.

jbolduan avatar jbolduan commented on July 24, 2024

I'm seeing the same behavior and I'm fairly certain it only happens when the UNC path exceeds 250 characters. Is there a good way around this or a fix?

Edit: I should say I get the same error message on File.GetAccessRule(\\server\share)

from longpath.

peteraritchie avatar peteraritchie commented on July 24, 2024

Please try latest code with UNC and reparse point support. I cannot reproduce this with the latest build.

from longpath.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.