Nothing in the logs. Only my own statements before and after the ns_returnfile command.
I did it like this:
img src="returnimg.tcl"
(10 times on a page)
the returnimg.tcl simply calls ns_returnfile.
The browser gets so confused it gets also in trouble with other images once the problems begin.
Really strange behaviour!