Thanks for a very interesting link. Though, I was not able to reproduce the behavior, even with the code in the article. Even if I put, unique or ptr as attribute to my parameter ([in, string, unique]) I get the same error code. I can pass a IUnknow* with 0 as value, both with unique and ref (which should be impossible), but a wchar_t* cannot be passed, regardless of the unique attribute or not. /Per