You are dealing with a job concurrency issue. The internal DDE server is busy processing your first request and that's why it cannot respond to the simultaneous second request, leading to "DDE server not found" error. There is only one DDE server and it is not part of a queue. If you use JobGetstatus to find out whether first job is completed, instead you can use FileExists to check whether the job processing file .tmp exists in the Job Queue folder. This method would allow avoiding using shared resources and thus allow true job concurrency. : Here is the setup: I have Job ClientA (running in Job Queue A). ClientA uses : JobRun() to run a series of other jobs (also in Job Queue A). : I also have ClientB (running in Job queue B). ClientB also uses JobRun() to : run other jobs in queue B. : After JobRun() I call JobGetStatus() on the jobs to see if all is well. I : find that if ClientA and ClientB are running at the same time : JobGetStatus() causes an error of "Internal error (-3): DDE server : not found.". If they run alone (or in Debug mode) then it works. : Any ideas? Shouldn't these jobs be able to run at the same time because they : are in different queues? : Thanks, : Mark
|