Public bug reported: Bug reported by Steve Robbins in the nunit-discuss mailing list. For details, see https://mail.google.com/mail/?ui=2&shva=1#inbox/12b32fa7323997f9
"We recently had time to revisit this issue. Using JetBrains DotTrace, my colleague has verified that nunit is holding onto references to the test fixture after the fixture has completed executing. We've seen that the references are being held by the ParameterizedMethodSuite. At some point a ParameterizedMethodSuite is being created with the "fixture" value being set to the test being run. However, it is not set to null when the test completes (the fixture property of some other Test class is set to null, but not the fixture property of the ParameterizedMethodSuite). "It seems that the following code change solves the problem. In Nunit.Core.ParameterizedMethodSuite.Run add the following lines before exiting the function: this.Fixture = null; this.setUpMethods = null; this.tearDownMethods = null;" ** Affects: nunitv2 Importance: Undecided Status: New -- Memory leak in ParameterizedMethodSuite https://bugs.launchpad.net/bugs/644252 You received this bug notification because you are a member of NUnit Developers, which is subscribed to NUnit V2. Status in NUnit V2 Test Framework: New Bug description: Bug reported by Steve Robbins in the nunit-discuss mailing list. For details, see https://mail.google.com/mail/?ui=2&shva=1#inbox/12b32fa7323997f9 "We recently had time to revisit this issue. Using JetBrains DotTrace, my colleague has verified that nunit is holding onto references to the test fixture after the fixture has completed executing. We've seen that the references are being held by the ParameterizedMethodSuite. At some point a ParameterizedMethodSuite is being created with the "fixture" value being set to the test being run. However, it is not set to null when the test completes (the fixture property of some other Test class is set to null, but not the fixture property of the ParameterizedMethodSuite). "It seems that the following code change solves the problem. In Nunit.Core.ParameterizedMethodSuite.Run add the following lines before exiting the function: this.Fixture = null; this.setUpMethods = null; this.tearDownMethods = null;" _______________________________________________ Mailing list: https://launchpad.net/~nunit-core Post to : nunit-core@lists.launchpad.net Unsubscribe : https://launchpad.net/~nunit-core More help : https://help.launchpad.net/ListHelp