CreateObject hangs in R6 agent, works in R5

I have scheduled agents working in R5 that use an OCX object successfully to access a DBMS called UniVerse.

In R6 I had to modify the agent security to allow the agent to run. However, the CreateObject statement hangs with no run time error (and it isn’t then possible to cleanly quit the HTTP process).

The agent runs fine in an R5 or R6 client and on an R5 server. Can anyone point me to why it may fail in R6 when running on the server?

Thanks in advance, Rob.