Link to home
Create AccountLog in
Avatar of purplesoup
purplesoupFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Do you need to “unwire” event handlers in ASP.NET webforms

I was just learning about the ANTS memory profiler and was surprised at the example given in the walkthough:

The memory leak in the example was caused by registering for an event but not unregistering.

In ASP.NET I'm sure I never write any unregister code - so I had a google to see if I should. I found this page:

which seems to conclude you don't, but one comment suggested there could be a problem. Does anyone know conclusively the answer to this one?
Avatar of Paul Jackson
Paul Jackson
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of purplesoup


Thanks for your help.