Hi Ian, Works like magic. Thanks a mil for the elegant solution. My long running application will now actually run for a long time :) Regards J Ian Ward wrote: > John, please try the attached patch and verify that it works for you.