I have a case where I’m in a cleanup call back, but the instance teardown
has been called and my context has been deleted. (I was unloading the mini
filter). Why would this happen in the middle of an operation. If I’m still
getting callbacks why would the instance context go away. Granted I don’t
keep it locked(reference on) it from the pre op to the post op. But I would
think the Filter Manager would be keeping it around until all my callbacks
are done. Does this mean I could be in a callback (pre or post) and my
context might not be there if the mini filter is being unloaded?
I have a dump if you’d like to see it.
Ken
Ken,
The instance context is not deleted by the system until after you return from your TearDownComplete callback. Note that it is possible to receive operation callbacks between the time your InstanceTeardownStart routine is called and your InstanceTeardownComplete routine is called. Is it possible that you are deleting the instance context in your InstanceTeardownStart routine? If not then yes, I would like to look at the crash dump.
Neal Christiansen
Microsoft File System Filter Group Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Ken Galipeau
Sent: Wednesday, May 05, 2004 9:43 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Instance Context in Cleanup callback
I have a case where I'm in a cleanup call back, but the instance teardown has been called and my context has been deleted. (I was unloading the mini filter). Why would this happen in the middle of an operation. If I'm still getting callbacks why would the instance context go away. Granted I don't keep it locked(reference on) it from the pre op to the post op.? But I would think the Filter Manager would be keeping it around until all my callbacks are done. ?Does this mean I could be in a callback (pre or post) and my context might not be there if the mini filter is being unloaded?
I have a dump if you'd like to see it.
Ken
Questions? First check the IFS FAQ at The NT Insider:Windows NT Virtual Memory (Part I)
You are currently subscribed to ntfsd as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com