08-30-2006 09:17 AM - edited 08-30-2006 09:17 AM
Message Edited by jambon on 08-30-2006 09:17 AM
08-31-2006 07:08 AM
08-31-2006 09:32 AM
08-31-2006 10:14 AM
09-02-2006 10:32 AM
Jambon -
What language are you using?
09-03-2006 05:31 PM
09-04-2006 02:20 PM
jambon -
When you call ReleaseSequenceFileEx, the engine released its reference to the sequence file object. If you set the sequencefile variable to null or the variable goes out of scope, the reference to the sequence file object is not immediately released, but instead is given to the C# garbage collection feature and is actually released later when the garbage collection feature decides to process it later. When this reference is finally released is when the OS typically gains back the memory for the object. The idea is that you as a developer should not have to worry about memory management. This might be why the memory does not appear to be immediately released.
09-05-2006 01:17 PM
09-06-2006 09:31 AM
jambon -
The call to ReleaseSequenceFileEx is still necessary. The method tells the engine to release its reference to the sequence file in the engine cache. We have a cache so that the file stays in memory because the editor is using editing it or the engine is running it. Once .NET releases your reference and the engine cache reference is released via the above method call, the file should be unloaded from memory as long as no other references exist.