Hi Andy,

> Is there any way to display all the objects that have been
> created on a page?  Like if I have Set X = Server.CreateObject
>
> Is there a way to list all of those variables that have
> been declared in this fashion, so I can determine if they
> are being destroyed properly?

Not without either hard-coding it or using a dictionary object or
similar device (which would hold a reference to the object open thus
sometimes preventing it from being destroyed).

If you add only the variable name and type (maybe) to a dictionary,
however, you could enumerate those variables and do an "ExecuteGlobal"
to effectively dynamically create the destruction routines for all
variables for you. Using a dictionary object you could quite readily
include both the variable and the type of variable then use a select
statement to perform those tasks required of certain objects
(rs.close: set rs = nothing; erase myarray). It might serve useful in
both diagnostics and after-error cleanup.

Regards,

Shawn K. Hall
http://ReliableAnswers.com/

'// ========================================================
   "He had occasional flashes of silence that made his
    conversation perfectly delightful." --Sydney Smith




------------------------ Yahoo! Groups Sponsor ---------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/17folB/TM
---------------------------------------------------------------------~->

---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [EMAIL PROTECTED]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/active-server-pages/

<*> To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 

Reply via email to