question

KeithCrotty-5608 avatar image
0 Votes"
KeithCrotty-5608 asked ·

VS 2019 Diagnostic tool - Documentation ?

C# UWP VS 2019

I have a memory leak somewhere. I have a Reset sub that resets, clears, and resizes to 0 everything, which does not seem to be doing a complete job. I am also enumerating through the Main Xaml canvas control to remove but children added in code. I load a screen, click a re-load button. Every time, another mb of memory gets eaten up. Eventually, the processing starts pausing.

Anyway, I took a look at the Diagnostic tools, created some snapshots, etc. That is where I see the memory slowly erode. But, I am dead in my tracks after that. The List of data in the snapshot means nothing to me and clicking on them seems to open show some memory addresses, which is not helping much.

I am looking for a link to documentation, video whatever. YouTube and internet search has only turned up old and only slightly helpful information.

Sorry, but this tag is the only one I can find to take. HOw about a drop down list

uwp-xaml
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

KeithCrotty-5608 avatar image
0 Votes"
KeithCrotty-5608 answered ·

Thx Richard

You gave me a link, which was what I asked for. I was looking to mark it as answer, but doesn't look like this forum does that feature.

If I cant find it, ...I'll Be Back.

I may have to upload the project to GitHub. There is nothing in it someone would want to steal.

· 1 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, I have converted my comment to answer. If you find it helpful, you can mark it.

Regarding the issue of memory leaks, if it tricky, you can provide relevant code so that we can help you with analysis and testing. You are welcome to continue the discussion at any time.

0 Votes 0 · ·
RichardZhang-MSFT avatar image
0 Votes"
RichardZhang-MSFT answered ·

Hello,​

Welcome to our Microsoft Q&A platform!

If you are looking for a tutorial on memory diagnostics in VS2019, this document may help you. If this document does not solve your problem, you can try to make a feature request in Visual Studio Questions and describe your needs.

Thanks.

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.