I don't know the UFT test tool and I have no idea what it does. So I'm afraid you have to use your debugger to find out what part of the application crashes - maybe coming back with a call stack.
At least you have to feed me with more information, than posting a line of your code.

Uwe

PS: please start a new thread instead of continuing to another almost unrelated one.