Travis J
Travis J

Reputation: 82297

Server side, what loses scope when a user navigates away from a page in asp.net mvc 3?

Server side, what loses scope and or is eligible for garbage collection when a user navigates away from a page in asp.net mvc 3?

Upvotes: 0

Views: 79

Answers (1)

Jorge Alvarado
Jorge Alvarado

Reputation: 2674

Exactly the same with what happens on any other compiled code in .Net, if you dispose your objects they will be collected as soon as possible by the Garbage Collector when time tells by the CLR, otherwise, resources are hanging until a good recycle in your IIS happens and/or the CLR in your server needs to clear memory to allocate other resources.

Upvotes: 1

Related Questions