To Open TCP Port:
[
static extern long MT_Open_TcpPort(ref long socketHandle, string remoteIP, long remotePort);
static extern long MT_Read_Data(long socketHandle, byte devID, int address, int qty, ref int[] hold_reg);
While Reading data:
To Open Port :
retval = MT_Open_TcpPort(
To Read Data:
retval = MT_Read_Input_Reg(sockethandle, 1, 100, 3,
For this statement, We are getting System.AccessViolation Exception:
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Any Help Appreciated.
Regards,
Vikram Patil