Comments
Sort by recent activity
Hi, thanks for the link - I'm just working my way through that document and not got to that point yet. [image]
Sorry another quick question. I'm opening a child form like so:
using (var form = new FormOptions())
{
form.ShowDialog(this);
}
and when I close the above "options" form down and return to my main app, I then do a snapshot. I've noticed some objects still in the memory (form wide private variable), but if I take another snapshot it removes those object (I believe it's something to do with a finalize queue. so In a sense I have to take two snapshots to make sure these are removed. How can I just take the one snapshot and filter out all those that will be cleared on the next snapshot (GC.Collect?). In the filters at the bottom I'm currently setting the filter to only show NEW items between the two snapshots.
Thanks / comments
Hi, thanks for the link - I'm just working my way through that document and not got to that point yet.
Sorry another quick question. I'm opening a child form like so:
using (var form = new FormOpt...
Thanks for the reply Russel, I can see why it's not run in VS. Apologies for the questions, couple more:
1. Earlier you said " or programmatically." - How can I take a snapshot programmatically ?
2. When I run the profiler from VS (or manually) should I compile my VS code in DEBUG or RELEASE mode? / comments
Thanks for the reply Russel, I can see why it's not run in VS. Apologies for the questions, couple more:
1. Earlier you said " or programmatically." - How can I take a snapshot programmatically ?
2...
Hi Russel,
Many thanks for the quick response, much appreciated.
As for the VS/Viewing Code - what I did with the built in diagnostics is run the application with break points in it, then I could take snap shots run a but more and take another snapshot - all within the same winform - VS diagnostics is fairly new to me, so maybe I was just doing it wrong, but I did find a few memory leaks this way. Guess I'll just have to keep playing around with it - installed the VS Extension so will try that too. / comments
Hi Russel,
Many thanks for the quick response, much appreciated.
As for the VS/Viewing Code - what I did with the built in diagnostics is run the application with break points in it, then I could t...
Hi Richard,
Thanks for the link, that is the version the updater updated me to. [image] / comments
Hi Richard,
Thanks for the link, that is the version the updater updated me to.
Hi Russel,
I had this today - I installed the trial version 8.11 and it told me when I first ran it there was an update - 8.12, after updating I lost the icon I pinned to start screen. / comments
Hi Russel,
I had this today - I installed the trial version 8.11 and it told me when I first ran it there was an update - 8.12, after updating I lost the icon I pinned to start screen.
Hi,
I'm new here, and just playing around with the trial (day 1 at the moment), and just looking at a couple of my objects and I have a very similar picture with two of my objects
AssetItems[]
AssetCustomData[]
I have a static class which then has a static method in it:
public static List<AssetCustomData> FetchAssetCustomData(int assetHeaderId)
{
var customDataList = new List<AssetCustomData>();
... //Adds objects to the list here from DB.
return customDataList;
}
this method returns the list of objects back to my WinForm.
However my Winform is now closed, but the "AssetCustomData[]" is still referenced, rest of the form is clean now.
Any .net people out there that can suggest a better way to do this?
EDIT 1:
I've now changed my class to a sealed class, and removed the static from the methods - but I still get the same result in the ANTS memory app.
EDIT 2: Just done a full recompile of the application, and tested again this morning, still getting the same result. I can say the AssetItem[] is not at all static, but there is still a GC Handle to it through System.Object[] / comments
Hi,
I'm new here, and just playing around with the trial (day 1 at the moment), and just looking at a couple of my objects and I have a very similar picture with two of my objects
AssetItems[]
Asse...
Sorry for bringing up an old post, but I'm new to "ants" and generally memory leak investigation, are they any good up to date tutorials on what to look out for and how to change it as well as understanding all the information ANTS gives us? / comments
Sorry for bringing up an old post, but I'm new to "ants" and generally memory leak investigation, are they any good up to date tutorials on what to look out for and how to change it as well as unde...