Skip to Content
0
Nov 07, 2012 at 02:00 PM

oCompany.Connect() hangs when ran as a job

36 Views

Hi All,

I've created an executable which connects to a B1 Company (8.82 PL8). The program works perfectly... BUT when I schedule this executable as a job, my code get's stuck on the oCompany.Connect() line. I'm not getting any error, the program just halts. It stays stuck here until I kill the program. If I run the program from the command line (exact same executable as in the job defined, same user) everything works perfectly.

The OS is Windows 2008R2 x64. I was wondering it might be due to problems in the %temp% folder of the user that is running the job but that doesn't seem to be the case.

Anyone else ever had this problem?

grtz,

Bas