Search found 10 matches

by kellyconway
Tue Nov 22, 2011 9:50 pm
Forum: Using .NET Memory Profiler
Topic: Strategy for automating leak detection
Replies: 9
Views: 13232

Re: Strategy for automating leak detection

OK, after making quite a few changes to my test method today, I was finally able to get it to work the way I wanted. Not really sure what it was exactly that had been causing the discrepancy between snapshots taken a few seconds apart when no code should have been running, but I was able to change t...
by kellyconway
Tue Nov 22, 2011 1:53 pm
Forum: Using .NET Memory Profiler
Topic: Strategy for automating leak detection
Replies: 9
Views: 13232

Re: Strategy for automating leak detection

Alright, I'll keep banging on it. I had already tried waiting as much as 30 seconds (in code) before doing the final snapshot, as well as having had the Session.Abandon() in my code previous to the final snapshot. Neither of those seemed to change the described behavior before. I'll try those and so...
by kellyconway
Fri Nov 18, 2011 4:47 pm
Forum: Future Improvements
Topic: API Ability to "query" snapshots?
Replies: 1
Views: 11814

API Ability to "query" snapshots?

Is there any chance that we may be able to do something like this at some point using the API? MemSnapshot snapshotInitial = MemProfiler.FullSnapShot("Initial"); MyCode.Login(); MyCode.OpenPage1(); //... MyCode.OpenPageN(); MyCode.Logout(); MemSnapshot snapshotFinal = MemProfiler.FullSnapShot("Final...
by kellyconway
Fri Nov 18, 2011 4:09 pm
Forum: Using .NET Memory Profiler
Topic: Strategy for automating leak detection
Replies: 9
Views: 13232

Re: Strategy for automating leak detection

OK, so "stream-of-consciousness" forum posting is probably a bad idea. Sorry. :-) As it turns out, I'm still seeing something a little strange in the assertions . I've modified my code now to be as follows: 1. Log in exactly the way a user would (sets up some things in the session, establishes datab...
by kellyconway
Fri Nov 18, 2011 2:06 pm
Forum: Using .NET Memory Profiler
Topic: Strategy for automating leak detection
Replies: 9
Views: 13232

Re: Strategy for automating leak detection

While looking for the option to allow more snapshots per session, I noticed that the option "Suspend thread until memory leak is handled" was unchecked. I will turn that on, give this another try, and report back. Attempt #1 After adjusting the max snapshots option to 40, profiler continued attempti...
by kellyconway
Fri Nov 18, 2011 2:02 pm
Forum: Using .NET Memory Profiler
Topic: Strategy for automating leak detection
Replies: 9
Views: 13232

Re: Strategy for automating leak detection

Thanks, Andreas. Yes, you have summarized my assertion issue correctly. And, yes, the offending objects do appear (marked as potential leaks due to the assertion failures) in the snapshot that my code generates with MemProfiler.FullSnapShot("Final - After Disposing All Pages"), which is immediately ...
by kellyconway
Thu Nov 17, 2011 10:35 pm
Forum: Using .NET Memory Profiler
Topic: Strategy for automating leak detection
Replies: 9
Views: 13232

Strategy for automating leak detection

I used .NET Memory Profiler to correct memory leaks in a large ASP.NET / Visual WebGUI application by, as seems typical, aggressively unwiring event handlers and calling .Dispose() on no-longer-needed objects. Now, I've written code that instantiates and disposes each of our application's pages, whi...
by kellyconway
Thu Nov 10, 2011 2:04 pm
Forum: Using .NET Memory Profiler
Topic: MemAssertion methods act differently if evaluated?
Replies: 3
Views: 7697

Re: MemAssertion methods act differently if evaluated?

Excellent support, Andreas. Thanks!
by kellyconway
Wed Nov 09, 2011 9:42 pm
Forum: Using .NET Memory Profiler
Topic: MemAssertion methods act differently if evaluated?
Replies: 3
Views: 7697

Re: MemAssertion methods act differently if evaluated?

Hmmm. Often, it seems the solution to an issue is to post about it online. Sure enough, after having submitted my op, I went back to the project and found that the issue was resolved. No idea why it had been failing preivously, but it's working fine now. :)
by kellyconway
Wed Nov 09, 2011 9:16 pm
Forum: Using .NET Memory Profiler
Topic: MemAssertion methods act differently if evaluated?
Replies: 3
Views: 7697

MemAssertion methods act differently if evaluated?

Hi. I'm currently using a trial version of 4.0.114.0, and have requested that my company purchase a few full versions for our use. After having used it to diagnose a memory leak, I want to use it as part of our automated build process to detect and notify us of future potential memory leaks. I've cr...