Page 1 of 1

desktop application user objects limit

Posted: Mon Mar 05, 2012 12:15 pm
by brucegu
hi all
USER OBJECTS exceeded the 10000 limit, how to find which class raise the issue?
any reply is appreciated.

Re: desktop application user objects limit

Posted: Thu Mar 08, 2012 10:57 am
by Andreas Suurkuusk
The unmanaged resources tracker in .NET Memory Profiler should be able to help you find out how the USER objects are created.

First of all, I recommend that you make sure that the symbol file locations are correctly initialized using Tools->Options (see screenshot below).
Symbol settings
symbols2.png (35.73 KiB) Viewed 6664 times
When you start profiling your application, make sure the unmanaged resources tracker is enabled. While profiling you can collect a few snapshots and investigate the USER objects . If the number of instances seems to increase for each snapshot, you can investigate this further. The allocation call stacks of the new resource instances should hopefully give you information about why and how they were created.

I hope this helps you get started.