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

Update documentation to describe how to avoid Java.Lang.NullPointerException #214

Closed
masesdevelopers opened this issue Oct 9, 2023 · 0 comments · Fixed by #215
Closed
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@masesdevelopers
Copy link
Contributor

If the hypothesis is correct, to avoid the GC retires the object, we try to execute the following code:

            try
            {
                GC.SuppressFinalize(kRecord);
                return Send(kRecord);
            }
            finally { GC.ReRegisterForFinalize(kRecord); }

Originally posted by @masesdevelopers in masesgroup/KNet#242 (comment)

@masesdevelopers masesdevelopers added documentation Improvements or additions to documentation enhancement New feature or request labels Oct 9, 2023
@masesdevelopers masesdevelopers self-assigned this Oct 9, 2023
@masesdevelopers masesdevelopers changed the title Update documentation to describe how to write a good code Update documentation to describe how to avoid Java.Lang.NullPointerException Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
1 participant