Trevron
Feb 12th, 2001, 06:03 AM
Anyone know if this idea is possible in the global.asa :
Sub Application_OnStart
Set Application("myAppVar")=CreateObject("Scripting.Dictionary")
End Sub
Creates the runtime err:
Application object error 'ASP 0197 : 80004005'
Disallowed object use
Cannot add object with apartment model behavior to the application intrinsic object.
I can assign the dictionary object to Session("") variables so why not Application("") ??
Cheers.
PS. I know I can just as easily use normal VBarrays but using the dict object is quite tidy (and the problem is just buggin me!!!)
Sub Application_OnStart
Set Application("myAppVar")=CreateObject("Scripting.Dictionary")
End Sub
Creates the runtime err:
Application object error 'ASP 0197 : 80004005'
Disallowed object use
Cannot add object with apartment model behavior to the application intrinsic object.
I can assign the dictionary object to Session("") variables so why not Application("") ??
Cheers.
PS. I know I can just as easily use normal VBarrays but using the dict object is quite tidy (and the problem is just buggin me!!!)