I use createobject to create a class in a ActiveX type of .dll file.
When I set the agent as a scheduled agent, it creates the Automation object fine. But if I call the agent from webqueryopen event from a form. It just hangs on the line of
set objclsName = CreateObject(“appName.appClassName”)
Does anyone know why? is it that I am not suppose to use createobject in a webqueryopen agent, or is there anything I have missed?
p.s. the agent run time security level is set to 3.
thanks in adv
christina
Subject: CreateObject and WebQueryOpen Agent
Weird behaviour of agents with CreateObject:
Despite I haven’t got any responses for my original post, I carried on to test the agent with
set objclsName=CreateObject(“appName.appClassName”)
Here is why I say it is weird:
-
I set the agent as a daily schedule agent, run it. It works fine
-
I change the same agent to scheduled Never, check the allowed user activation. Then call this agent from a webqueryopen agent by useing agent.runonserver, that works fine as well.
-
finally I change the scheduled agent to “run from agent list” and call it directly from WebQueryOpen event of a form. This would normally work for the 1st time. If I run it again, then the agent will hang on the line of
set objclsName=CreateObject(“appName.appClassName”)
Has anyone experienced this before?
Or this type of agent is not suppose to be called from WebQueryOpen Event?
Any other ideas on this subject?