Application crash & User Object leak
When working with an application for a long duration suddenly the application crashed.
On analyzing the reason for the crash it is found that the “User Objects” exceeded the limit(10,000 objects). So how to find which code part is responsible for the crash. It’s not so obvious, the profiling tools just give us the numbers but doesn’t show what objects are there. So, it was a hard way to debug through the whole “UI code”(Presentation Layer) while performing the the similar tasks in application which led to the crash and monitoring the “User Objects” count.
Finally found that the culprit is an “array of user controls” where the array is cleared but the objects in the array are not disposed properly.