title: Attempted to read or write protected memory when calling native C DLL
body: <p>I have a native C dll that exports one function besides DllEntryPoint, FuncX.  I'm trying to find out how FuncX communicates with it's caller, because it has a void return type and no parameters.  When I call it from a C# harness, I get an AccessViolationException - Attempted to read or write protected memory.</p>
  
  <p>I have a hunch that its client application may allocate a buffer for sending or receiving values from the dll.  Is this a valid hunch?</p>
  
  <p>I can't debug the client application because for some reason it doesn't run, so I can't start it and attach to the process.  I can, however, disassemble it in IDA Pro, but don't know how to, if I can, try and debug it in there.</p>