idhttpserver 事件 CommandGet小问题
idhttp客户端post数据包,被服务端接收,我想在IdhttpserverCommandGet事件中处理客户端post过来的XML数据包,使用XMLdocumnt控件处理
IdhttpserverCommandGet事件中的大概代码如下:
procedure TForm1.IdHTTPServer1CommandGet(AThread: TIdPeerThread;
ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo);
begin
ServerMemo.Text:=(ARequestInfo.Params.GetText);
XMLDoc.Active:=false;
XMLDoc.XML.Text:=ServerMemo.Text;
XMLDoc.Active:=true;
..........//读取XML中节点的数值
AResponseInfo.ContentText:=ResponseString;
end;
程序到调用XMLDoc的时就会出现这样的错误
project project1.exe raised exception class EoleException with message '尚未调用CoInitialize。'process stopped use step or run to continue
不明白“尚未调用CoInitialize”是什么意思,请大家帮忙解答。