The problem I described can not be due to a returning NULL pointer. I always check for this kind of mishaps in my programs and even the TC-debugger shows a non-NULL pointer.... Joris