请问高手关于用VB写ASP的Application的问题!?急
徐蕤 2002-03-08 05:29:52 由于ActiveX Dll的运行速度至少比ASP快10~20倍,所以我肯定首选自建控件。
对于引入ASP.dll库外,我还在模块中初始化了以下几段代码(网上搜到的):
----------------------------------------
Private Server As Server
Private Request As Request
Private Response As Response
Private Session As Session
Private Application As Application
Public Sub OnStartPage(PassedScriptingContext As ScriptingContext)
Set Server = PassedScriptingContext.Server
Set Request = PassedScriptingContext.Request
Set Response = PassedScriptingContext.Response
Set Session = PassedScriptingContext.Session
Set Application = PassedScriptingContext.Application
End Sub
Public Sub OnEndPage()
Set Server = Nothing
Set Request = Nothing
Set Response = Nothing
Set Session = Nothing
Set Application = Nothing
End Sub
--------------------------------------
我的问题是
1.VB中,我想获得ASP的这五个内建对象的同名使用权,到底是不是这样引用?
2.VB中,Application对象的lock方法出现严重锁死问题,unlock无效。
问题发生后产生的现象是只要使用了Application的ASP文件全部等待响应,其他文件访问正常。
为什么Application的读取,写入正常,而lock和unlock不正常呢?又如何解决?