Hello all ,
I am writing a stream class minidriver.I have a crash problem in
function where i handle "SRB_SURPRISE_REMOVAL "

---> In that function I try to access "HwDeviceExtension"and "Stream
Object" members of present SRB ( SRB_SURPRISE_REMOVAL)..
---> As a result of that my driver is crashing.!!!!!

Can any body tell me ..the reasons for this..?

" Actually i have to de-allocate the buffer which i have
allocated in Init function and stored the pointer to buffer in Device
Extension , so in order to clean up that i require to access device
extension."



Can any body help me out..
Thanks & Rgds,
Darshan