I don't really understand this.
to my knowledge (please, the one having ALL the knowledge correct me if I'm wrong):
the udf you are using, is not functioning properly with 4.10

I can't see problem in your script, so all I can think is the udf.

might look more deeply into this but would like someone like shawn or alex.h or someone with some experience with com to look at the code.
_________________________
!

download KiXnet