Search found 6 matches

by Dave
Tue Oct 15, 2013 5:21 pm
Forum: Using .NET Memory Profiler
Topic: Profiling causes my app to crash
Replies: 2
Views: 7873

Re: Profiling causes my app to crash

I am getting an access violation writing location 0x00000000 in ProfilerCallback.dll.
by Dave
Mon Oct 14, 2013 8:46 pm
Forum: Using .NET Memory Profiler
Topic: Profiling causes my app to crash
Replies: 2
Views: 7873

Profiling causes my app to crash

When I attempt to profile my application using v4.6 Professional, my application crashes and I have not yet been able to determine why. The profiler is launched with the following command line: "C:\Program Files\SciTech\NetMemProfiler4\NetMemProfiler.exe" /log:c:\MemProfilerLogs The ProfilerClientLo...
by Dave
Thu Aug 15, 2013 8:34 pm
Forum: General
Topic: 2 snapshots required
Replies: 2
Views: 28690

Re: 2 snapshots required

I found part of my problem. Apparently when you add an array of objects to a ListBox, it caches the objects in an 'entries' member even after you call Clear(). Calling Clear() will set the number of items to 0, but the cached objects will remain. However, if you call <ListBox>.Items.RemoveAt(index) ...
by Dave
Thu Aug 15, 2013 12:42 am
Forum: General
Topic: 2 snapshots required
Replies: 2
Views: 28690

2 snapshots required

Attached is a real-time plot of total bytes. In it, I performed the same action 3 times. After each action, I collected 2 heap snapshots. As you can see, I got part of the memory back after the first snapshot and the rest back after the second snapshot. Why do I need two heap snapshots to get the me...
by Dave
Fri Jan 27, 2006 9:32 pm
Forum: Using .NET Memory Profiler
Topic: Collect Heap Snapshot vs Gen. 2 Garbage Collection
Replies: 3
Views: 11114

Thanks for your response. I've modified our code such that the key sequence does those same actions (except I left the GC.WaitForPendingFinalizers instead of the Thread.Sleep). However, the key sequence still does not return all of the memory - unless a task switch occurs in between. I trigger sever...
by Dave
Fri Jan 27, 2006 3:42 pm
Forum: Using .NET Memory Profiler
Topic: Collect Heap Snapshot vs Gen. 2 Garbage Collection
Replies: 3
Views: 11114

Collect Heap Snapshot vs Gen. 2 Garbage Collection

Before we started using the Memory Profiler, we had a key sequence that would trigger a garbage collection and wait for pending finalizers. However, when tracking memory usage on the Real-time tab, the key sequence triggers a Gen. 2 garbage collection and frees most of the memory, but some is not fr...