Can't execute code from freed script

Discussion in 'ASP General' started by Martin Waller, Dec 3, 2004.

  1. Hello,

    I have a situation where I'm trying to control the temporary files created
    by a series of web pages and ASP scripts. I have an object, call it Y that
    manages these files and saves away in a scripting dictionary all the
    temorary files that have been created. Y is basically JScript class with
    method. One method is a purge method that deletes all the created files.

    Currently I am creating the object in ther default.asp page and then saving
    the object in the Session object - Session("Y") = Y - seems to work fine.

    If on another page I pull out Y and try to use it I get the error message
    "Can't execute code from freed script". If I try to pull out property values
    these work fine so the object is still there but something has whipped away
    the code !

    Does anyone know why ? How do I get around this ?

    Many thanks...

    Martin
     
    Martin Waller, Dec 3, 2004
    #1
    1. Advertising

  2. I have the answer...

    See: http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=195

    Martin

    "Martin Waller" <> wrote in message
    news:...
    > Hello,
    >
    > I have a situation where I'm trying to control the temporary files created
    > by a series of web pages and ASP scripts. I have an object, call it Y that
    > manages these files and saves away in a scripting dictionary all the
    > temorary files that have been created. Y is basically JScript class with
    > method. One method is a purge method that deletes all the created files.
    >
    > Currently I am creating the object in ther default.asp page and then

    saving
    > the object in the Session object - Session("Y") = Y - seems to work fine.
    >
    > If on another page I pull out Y and try to use it I get the error message
    > "Can't execute code from freed script". If I try to pull out property

    values
    > these work fine so the object is still there but something has whipped

    away
    > the code !
    >
    > Does anyone know why ? How do I get around this ?
    >
    > Many thanks...
    >
    > Martin
    >
    >
    >
     
    Martin Waller, Dec 3, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rajat
    Replies:
    3
    Views:
    706
    Jorgen Grahn
    Jan 8, 2010
  2. Dirk Gently

    Can't execute code from a freed script

    Dirk Gently, Nov 12, 2004, in forum: Javascript
    Replies:
    4
    Views:
    405
    kaeli
    Nov 16, 2004
  3. reformy
    Replies:
    2
    Views:
    223
    LV_Indy
    Jun 30, 2005
  4. Thor W Hammer

    Freed script

    Thor W Hammer, Nov 21, 2005, in forum: Javascript
    Replies:
    4
    Views:
    126
    Thor W Hammer
    Nov 23, 2005
  5. maya
    Replies:
    2
    Views:
    191
Loading...

Share This Page