Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disposing of User Controls
Message
 
To
05/10/2010 09:34:29
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 3.0
Application:
Web
Miscellaneous
Thread ID:
01483968
Message ID:
01484083
Views:
35
>Hello,
>I'm trying to track down a memory leak in an ASP.NET application, and it has brought me to question how User Controls are disposed. Since we don't explicitly dispose of them, I'm assuming it's part of the ASP.NET page lifecycle, is that correct?

User controls get disposed automatically, but you may have to watch for circular references. if you have a user control that has a referenec back to the Page for example (should never need that given that this.Page works which is explicitly nulled) that can cause problems. Think about properties of the Page or other component that still exists in the user control that can cause problems.

+++ Rick ---
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Reply
Map
View

Click here to load this message in the networking platform