Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Out of Memory #52

Open
GaoLinHuang opened this issue Dec 6, 2021 · 0 comments
Open

Out of Memory #52

GaoLinHuang opened this issue Dec 6, 2021 · 0 comments

Comments

@GaoLinHuang
Copy link

Hello, I encountered a memory overflow problem. Locate the following Demo:

Task.Run(async() => {

            while (true)
            {
                try
                {
                    using (IKnownFolder appsFolder = KnownFolderHelper.FromCanonicalName("AppsFolder"))
                    {
                        if (appsFolder == null) continue;
                        foreach (var item in appsFolder)
                        {
                            if (!item.Properties.DefaultPropertyCollection.Contains("System.Link.TargetParsingPath")) continue;
                        }
                    }    
                }
                catch (Exception ex)
                {

                    System.Diagnostics.Debug.WriteLine(ex);
                }
                await Task.Delay (1000);
            }
        });

I hope I can get your help!
I wish you a happy life!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant