Thanks, but it didn't solve it. The same code (+coinitialize) works in Delphi 5. Maybe it's the dispinterfaces problem in fpc? Is it expected to work in 2.2.2 or in 2.3.1? thanks, -- Felipe Monteiro de Carvalho