The runtime has encountered a fatal error. The address of the error was at 0x5807ee89, on thread 0x2188. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack
string[] _GetGPIODIVal=new string[8]; byte[] DataOutBuffer = { 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80 }; byte[] getBitmodeval = new byte[1]; byte c; byte[] DataINBuffer = new byte[1]; for (int i = 0; i < DataOutBuffer.Length; i++) { c = (byte)(getBitmodeval[0] & DataOutBuffer[i]); //Error occured at this line _GetGPIODIVal[i] = c.ToString(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)