\r\n
\r\n \r\n Hi All,
\r\n
\r\nThis is my first post. My code is generating an exception when the GetData method executes in my DataArrival event handler. I get the following exception message: Exception from HRESULT:0x800A9C52. My code is listed below. I suspect one of my parameters is incorrect. Help please!
\r\n
\r\nprivate: System::Void axWinsockCmd_DataArrival(...)
\r\n{
\r\nObject* objBuffer = new Object;
\r\nObject** refBuffer = &objBuffer;
\r\nint maxLen;
\r\n
\r\n maxLen = axWinsockCmd->BytesReceived ;
\r\n try
\r\n {
\r\n axWinsockCmd->GetData(refBuffer, DataFormats::Text, __box(maxLen));
\r\n }
\r\n catch(Exception* pe)
\r\n {
\r\n MessageBox::Show (pe->Message, S"An Exception Error occurred" );
\r\n }
\r\n txtIncomingCmdData->Text = dynamic_cast<String*>(*refBuffer) ;
\r\n}\r\n
\r\n
\r\n \r\n