mkomsa
New member
Hi All,
This 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!
private: System::Void axWinsockCmd_DataArrival(...)
{
Object* objBuffer = new Object;
Object** refBuffer = &objBuffer;
int maxLen;
maxLen = axWinsockCmd->BytesReceived ;
try
{
axWinsockCmd->GetData(refBuffer, DataFormats::Text, __box(maxLen));
}
catch(Exception* pe)
{
MessageBox::Show (pe->Message, S"An Exception Error occurred" );
}
txtIncomingCmdData->Text = dynamic_cast<String*>(*refBuffer) ;
}
This 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!
private: System::Void axWinsockCmd_DataArrival(...)
{
Object* objBuffer = new Object;
Object** refBuffer = &objBuffer;
int maxLen;
maxLen = axWinsockCmd->BytesReceived ;
try
{
axWinsockCmd->GetData(refBuffer, DataFormats::Text, __box(maxLen));
}
catch(Exception* pe)
{
MessageBox::Show (pe->Message, S"An Exception Error occurred" );
}
txtIncomingCmdData->Text = dynamic_cast<String*>(*refBuffer) ;
}