If you are using any OLE dedicated object (for example, if you’re parsing an xml document, there was a XMLDocument in your program, etc) and also if you’re using thread at the same time you can get some errors, mostly cache, ram errors. To solve this situation you must write;

CoInitialize(nil);

at your thread code before execute method. And after the thread function ends you must write;

CoUnInitialize;

Tags: , , , ,
Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>