The requested lookup key was not found in any active …

using shellexecute(ex) to launch an url in the default browser in an applicaiotn using ms xml 4.0 I got the following error:
“The requested lookup key was not found in any active activation context”

after some googleing I discovered that it happened because I needed the ms xml stuff in threads so I used CoInitializeEx(nil, COINIT_MULTITHREADED);
which was the problem. I removed that line and in the thread execute I made a
[code:1:ef0e835e24]
CoInitializeEx(nil, 0);
try
thread code here
finally
CoUninitialize;
end;
[/code:1:ef0e835e24]

and that solved both my problems.

Related posts

Leave a Reply

This blog is kept spam free by WP-SpamFree.