Garbage Collection Issues

G

GriffyGriff

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top