Probably stupid question re: instance context and teardown

In the CTX example there is a note in CtxInstanceTeardownComplete() which
says:
// Here the filter may perform any teardown of its own structures associated
// with this instance.

// The filter should not free memory or synchronization objects allocated to

// objects within the instance context. That should be performed in the

// cleanup callback for the instance context

Since CtxContextCleanup() will always be called and since the instance
teardown is already complete why wouldn’t I just always teardown my
structures there instead of in CtxInstanceTeardownComplete()?

The truth is it doesn’t matter.

You can cleanup your instance context structure at
InstanceTeardownComplete if you want to. This was simply trying to say
it is not necessary since you will also get an instance context cleanup
as well (if you defined one) and can cleanup it up there.

Neal Christiansen
Microsoft File System Filter Group Lead
This posting is provided “AS IS” with no warranties, and confers no
rights.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Demetrius
Tsitrelis
Sent: Monday, July 05, 2004 5:59 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Probably stupid question re: instance context and
teardown

In the CTX example there is a note in CtxInstanceTeardownComplete()
which
says:
// Here the filter may perform any teardown of its own structures
associated
// with this instance.

// The filter should not free memory or synchronization objects
allocated to

// objects within the instance context. That should be performed in the

// cleanup callback for the instance context

Since CtxContextCleanup() will always be called and since the instance
teardown is already complete why wouldn’t I just always teardown my
structures there instead of in CtxInstanceTeardownComplete()?


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com