-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AccessViolationException #10
Comments
No worries. Thanks for the quick response! I should mention that I'm a newb with the Yara stuff, and I was just trying different libraries, in order to get a feel for what's out there. In truth, I haven't installed Yara on my system yet or built the C++ library yet. I just pulled down the Nuget package and started calling the APIs to become more familiar with it. In fact, I assume that the AccessViolationException could be a result of not having the actual Yara library/executable installed on my machine. So, there's a chance that this is all my fault. :) |
Yeah, you're calling ScanMemory outside of your using statement: Your YSContext is already disposed of by then! Try moving |
Yup, that's the answer! I'm sorry I never came back to this! FYI, at some point I plan to start a new repo and upgrade to V4. Unfortunately, StellarBear is no longer working on this project :( |
I'm attempting to use the library via a simple example:
But when I call "ScanMemory()", I get the following result:
System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'
Have you seen this before?
The text was updated successfully, but these errors were encountered: