Job Scheduler

I am trying to use the Job Scheduler to run a codeunit. The job scheduler says that it has run the job at the preset time but it only displays the codeunit’s dialog box for a split second and does not perform any updates. When the codeunit is run from the Designer Menu or from an ordinary menu it executes properly. Attain V. 3.01.B with fixes applied for 3.60