I have an app that I'm trying to fire off automatically every morning. I've created the app and I can run the executable and it works if I manually run the program... there are no errors and it appears to do its job.

However, when I set it up to run automatically (using AT from the command line and passing the app a parameter to tell it to shut itself down after running, I get errors (Error 6 - Overflow). My program continues on, but I get about 3 of these in my error log file.

The program is simple... it talks to 2 databases on 5 sucsessive calls and emails out some reports if any are overdue.

I don't know how to trap the error because it doesn't do it when I run it through the IDE or even manually running the EXE.

If anyone has any idea why this might be happening, I'd love to hear it.