ASP 中 Application 不能更新

ASP 中 Application 不能更新,高手进

sql="select top 10   aa,bb,cc from tablea "
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,1,1
cnt= rs.getrows()

'------------------------ aa 数字 

Application("cnt")=cnt

response.write " Arry -------------------<br>"
response.write cnt(0,0)&"->"
 cnt(0,0)=cnt(0,0)+1
response.write "["&cnt(0,0)&"]"

response.write "Application-------------------<br>"
response.write Application("cnt")(0,0)&"->"
 Application("cnt")(0,0)=Application("cnt")(0,0)+1
response.write "["&Application("cnt")(0,0)&"]"



为什么  Application 不能更新?
求解 
------解决思路----------------------
cnt 是数组,vbs数组类型不符合application要求的线程模型, 所以不适合把数组放到application中, 访问量一大的话,网站会挂的。 可以找个线程模型为both或free的字典组件代替数组, 比如 caprock  http://www.miniat.net/caprock-dictionary-object-component.asp
------解决思路----------------------
 'Application("cnt")(0,0)=Application("cnt")(0,0)+1
'===>
 
 cnt(0,0)=cnt(0,0)+1
 Application("cnt")=cnt


更新数组后更新application