C#에서 win32 dll을 로드하여 함수를 호출할때 다음과 같은 에러가 발생한다면

AccessViolation Exception was unhandled-Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

함수 호출시 포인터  인자의 in, out 속성이 잘못 되었을 가능성이 있다...

AND