I've got an event receiver that fails, seemingly inconsistently. I've checked the ULS logs and I can see the 90hv Detected use of SPRequest for previously closed SPWeb object. Please close SPWeb objects when you are done with all objects obtained from them, but not before
exception raised.
I've got two questions related to this:
Is this an exception that could explain the inconsistent way in which the event receiver works and sometimes doesn't work? I've debugged the code and functionally it's exactly as I'd expect. i.e. Does SharePoint manage the disposal of the object in question sometimes but sometimes it won't depending on system resource etc.?
Is this an exception that could break the code? Or is it just a warning?
EDIT:
It's worth pointing out that my code doesn't explicitly dispose of an object it attempts to reference - but it does without doubt have discrepancies with the way in which I don't dispose of objects I should be disposing of (no doubt memory leak issues) and I'm just looking for confirmation that given this scenario - the behaviour I'm seeing is as you'd expect. Either way, my code is under development now to correct it - just need help with diagnosis.