I am new to C# and a little stuck on arguments to pass to an external function.
The intelisense tells me the function has these parameters
void LPP.XRS_Search(int x, int y, int w, int z, int cl, int vr, int sp, int PointResult)
here is my call
int pxscoords = new int; LPP.XRS_Search(0, 0, 1024, 768, 16777215, 0, 1, pxscoords);
here is my error
An unhandled exception of type 'System.AccessViolationException' occurred in csharpsearchtest.exe
Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
I suspect that the last parameter should be a pointer to an array, but Im new so I do not really know.
I would appreciate some seasoned advice if possible.