Article ID: 164495
Article Last Modified on 5/2/2006
dim Arr(1)
Arr(0) = Server.CreateObject("MyProgID.MyClassId")
Session("MyVar") = Arr
When the session ends, or is terminated by an Internet Information Server
shutdown, the object pointer is released. In addition, VariantClear() is
called on the Variant containing the array "Arr". This results in a second
attempt to release the object pointer stored in "Arr", and thus a GPF.
<HTML>
<HEAD><TITLE>Document Title</TITLE></HEAD>
<BODY>
<%
Dim MyArray(2)
Set MyArray(1) = Server.CreateObject("ADODB.Connection")
Set MyArray(2) = Server.CreateObject("ADODB.Connection")
Session("SessionAry") = MyArray
%>
</BODY>
</HTML>
Keywords: kbaspobj kbbug kbfix kbiis500fix kboswin2000fix kbwebserver KB164495