Zeljko, shouldn't the QT binding code use UnicodeString instead of WideString. WideString is meant for Windows OLE programming where the OS takes care of memory management. I realized this issue after my commit r55233. Juha P.S. For some reason I see Zeljko's posts in this list but not in Lazarus-dev list.