On 2015-03-13 17:47, aradeonas wrote: > Just using {$interfaces com} do the job? Yes, and COM interfaces are reference counted by default. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/