Hi,
The problem is as follows.
<!-- xyz is our own concoction-->
set recRequestByCust = CreateObject(xyz)
<!--save it for future use by another page-->
If IsObject(recRequestByCust) Then
set Session("RECORDSET"
= recRequestByCust
<!-- I'm done with rec now, and to avoid a memory leak I destroy it -->
recRequestByCust.Close ---------------------1
set recRequestByCust= nothing ---------------2
In another page same session or even in the same page I use
Set newrec = Session("RECORDSET"
<!-- but it says that it is closed and cannot use it.
if I comment out lines ----1 and ----2 above it works OK.
Q(1)-- Does the session.contents(key) cause an addref() for the object or not when it is copied into the session variable? I've not been able to find this info anywhere.
Q(2)-- Or is our object xyz not constructed properly? All other aspects of the object workd well.
-->
Thanks in advance.
Mel
The problem is as follows.
<!-- xyz is our own concoction-->
set recRequestByCust = CreateObject(xyz)
<!--save it for future use by another page-->
If IsObject(recRequestByCust) Then
set Session("RECORDSET"
<!-- I'm done with rec now, and to avoid a memory leak I destroy it -->
recRequestByCust.Close ---------------------1
set recRequestByCust= nothing ---------------2
In another page same session or even in the same page I use
Set newrec = Session("RECORDSET"
<!-- but it says that it is closed and cannot use it.
if I comment out lines ----1 and ----2 above it works OK.
Q(1)-- Does the session.contents(key) cause an addref() for the object or not when it is copied into the session variable? I've not been able to find this info anywhere.
Q(2)-- Or is our object xyz not constructed properly? All other aspects of the object workd well.
-->
Thanks in advance.
Mel