Well that was the problem, I made it like you said before, but there was no error message. function result was empty.

But I already found my mistake. A very dumb one: I forgot to put the .x-file in the right folder..... I'm a really big idiot..
So, the problem is solved now. everythings runs as it should.

sven