extern "C" __declspec(dllexport) void PortExit(int val) { m_exitflag=val; } it is working on One - One Relationship that menas if i connect one COM Port .It is ok.But when i connect multiple port it is not worked.So i changed my code like this. New Code extern "C" __declspec(dllexport) void PortExit(int val,char *Ports) { m_exitflag=val; port=Ports; }
Message : Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Stack Trace: at Testing.MultiplePrint.PortExit(Int32 ExitValue, String port)
byte
PortExit(Int32 ExitValue, out string port) { .... }
SetExit()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)