Hi Wil

Thanks for you suggestion. Setting the String to character(0) does the Trick. Since WStrings must normaly not be 0 terminated i assumed, that the String length is stored inside the WString itself and a Character(0) will be a valid Value inside the String. So i tested it with

Move ("Test "+(Character(0)) + " string") to sFile
and the DLL is just receiving "Test " for sFile.

Now i have just to search a few hundred other Places where an empty String also can happen