[vtk-developers] [VTK 0012870]: Debugleaks reports a leak in vtkMath::Random

Mantis Bug Tracker mantis at public.kitware.com
Mon Jan 23 14:04:43 EST 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://vtk.org/Bug/view.php?id=12870 
====================================================================== 
Reported By:                Bryn Lloyd
Assigned To:                
====================================================================== 
Project:                    VTK
Issue ID:                   12870
Category:                   (No Category)
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     backlog
Project:                    TBD 
Type:                       incorrect functionality 
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             2012-01-23 14:04 EST
Last Modified:              2012-01-23 14:04 EST
====================================================================== 
Summary:                    Debugleaks reports a leak in vtkMath::Random
Description: 
Debugleaks reports a leak in vtkMath.

I used the function Random, and at the end of my program executation there is
still a vtkBoxMuellerRandomSequence object around.

See the error in the screenshot.

My environment is: MSVC 2010, Windows 7, x64, vtk 5.8.0


This can be reproduced by following simple test:

int main(int argc, char** argv)
{
  {
    vtkMath::Random(-1.0,1.0);
  }

  if ( vtkDebugLeaks::PrintCurrentLeaks() == 0) return EXIT_SUCCESS;
  else return EXIT_FAILURE;
}


====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-01-23 14:04 Bryn Lloyd     New Issue                                    
2012-01-23 14:04 Bryn Lloyd     File Added: vtkMath_Random.png                  
 
======================================================================




More information about the vtk-developers mailing list