this message is appearing in C# code after calling a function from dll
code is like this
function();
int i = 0;
on second line it says that there is an unhandled exception of type “System.AccessViolationException”… Attempted to read or write protected memory
If function is external there’s something wrong with the declaration.
This happens because your return value or your parameters types aren’t of the wrong size, and an error occurs with data “popped” from stack