The ud remembering the previous calls concerned me that there may be a memory leak. I also looped on the ibdev followed by an ibonl and monitored memory. After some 260,000 times there was no evidence of a memory leak, although the ud returned by ibdev did increment. I believe this may ultimately cause a problem if the ud overflowed the maximum allowed for an integer, but that is so large it is more likely the machine would be rebooted for some other reason before such an overflow. Thanks for your prompt response, and your confirmation of my observations.