© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
10 replies
Surihia

❔ What does this exception mean?

(Sorry for reposting as I already put it in the help chat and don't want it to get buried)

System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'

Basically I am passing a File Path as a string to another classfile and this classfile uses a dll and reads the File provided to a array. as soon as it gets to the code that do a value change onto the file, this exception is thrown.
The File in question is not accessed or being used by any other method and the path is correctly seen in the class file too.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

What does this mean
C#CC# / help
16mo ago
What does this error mean?
C#CC# / help
2y ago
What does this error code mean
C#CC# / help
3y ago
✅ What does uint mean?
C#CC# / help
3y ago