XmlHttpRequest and streams in Delphi

I am using Delphi 2010, and when I try to perform an XmlHttpRequest operation inside a separate thread from my application, I get an EOleSysError exception with the following message: 'CoInitialize is not called, ClassID: {F6D90F16-9C73-11D3-B32E-00C04F990BB4}'

Anyone have any ideas to fix this? (Sorry for my bad english)

Thanks!

+7
source share
1 answer

Call CoInitialize at the beginning of your stream. Run the method. Remember to call CoUninitialize at the end of Execute.

Chris Bensen has written several blog posts about this .

+15
source

All Articles