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.
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.