Garbage Collection Issues

Discussion in 'Javascript' started by GriffyGriff, Oct 17, 2003.

  1. GriffyGriff

    GriffyGriff Guest

    Hello.

    I am having what I beleive is a problem with Garbage Collection
    (Possibly connected with IE6).

    Background
    ----------
    What I have got is a very complicated JavaScript Application which,
    upon loading, copies .DLLs from a Cached Directory, to a Component
    Directory, (via FileSystemObject.CopyFolder()). Then runs a .bat file
    in the Component Directory, (in order to register them etc).
    It also has a refresh option which sets ALL the .DLL related Objects
    to null (NO Circular References etc.) and then calls
    window.location.reload(), to fully refresh it's memory and redisplay
    itself. The Idea behind this, is that I now have an Application which
    is smart enough to check itself for software upgrades and install
    them. (Obviously, there is more to this).

    My problem is that the Garbage Colection has not started/completed
    after null'ing out my .DLL Objects, before it does a reload (attempts
    the next FSO.CopyFolder()). The FSO.CopyFolder() call fails with an
    "Object in use" Error. (And it is correct, as I have tried to QUICKLY
    copy the .DLLs manually via Explorer and reciving the same Error).

    I know that this is a Garbage Timing Issue as if I wait an
    indeterminate amount of seconds, the SAME command will then work.

    I have even added an undocumented CollectGarbage() Call in the
    JavaScript, all to no avail.

    I would be very grateful if anyone has any suggestions etc.
    GriffyGriff, Oct 17, 2003
    #1
    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. Laser Lu

    Garbage Collection and Manage Code?

    Laser Lu, Jan 26, 2004, in forum: ASP .Net
    Replies:
    5
    Views:
    700
    Gaurav Khanna [C# MVP]
    Jan 27, 2004
  2. Cheung, Jeffrey Jing-Yen
    Replies:
    3
    Views:
    1,537
    Cheung, Jeffrey Jing-Yen
    Jul 10, 2003
  3. Replies:
    1
    Views:
    432
    mrstephengross
    Jul 25, 2005
  4. Øyvind Isaksen
    Replies:
    1
    Views:
    949
    Øyvind Isaksen
    May 18, 2007
  5. Replies:
    3
    Views:
    374
Loading...

Share This Page