in Extender Control Base I have this code
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design","CA1063:ImplementIDisposableCorrectly", Justification ="Using correct base class implementation and simply setting a flag on the way")]public override void Dispose() {this._isDisposed =true;base.Dispose(); }
After this runs I get an error in ScriptResource.axd
if (typeof(browserHandler) !=='function')throw Error.invalidOperation(Sys.Res.eventHandlerInvalid);
I am using IE 7[Behaviors: This method releases all unmanaged resources held by the current instance. When theexplicitDisposing parameter is
true
, this method releases all resources held by any managed objects referenced by the current instance. This method invokes theDispose()
method of each referenced object.]
[Overrides: Override this method to dispose of resources allocated by types derived from WaitHandle. When overridingDispose
(Boolean), be careful not to reference objects that have been previously disposed in an earlier call toDispose
orClose
.Dispose
can be called multiple times by other objects. ]
[Usage: This method is called by the publicSystem.Threading.WaitHandle.Dispose(System.Boolean) method and theSystem.Object.Finalize method.Dispose()
invokes this method with theexplicitDisposing parameter set totrue
. System.Object.Finalize invokesDispose
withexplicitDisposing set tofalse
.]
Take a look at
http://www.codeproject.com/useritems/idisposable.asp
for examplees
I'll take a look at that link. thanks.
No comments:
Post a Comment