I get this error when I migrated a vc++ project in VS 2003 to VS 2010. Project uses /clr:oldsyntax.
The class 'MPS::SerialPort::SerialPort::Dispose' re-defines the Dispose() as below
void SerialPort::Dispose()
{
m_WaitHandle->Close();
if( m_gchBuffer.IsAllocated )
m_gchBuffer.Free();
}
please suggest what can be done to ovecome the error.