| Summary: | G4cout leaks memory while cout does not on Sun and Linux | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | Pedro.Arce |
| Component: | global/management | Assignee: | yoshidah |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 0.1 | ||
| Hardware: | Sun | ||
| OS: | Solaris | ||
Fixed in config-V00-01-04 & global-V00-01-04 |
I just took the example novice N01 and added the lines for(G4int ii=0; ii<1E9; ii++) { G4cout << "testing G4cout memory leak..." << endl; } compiled with geant4.0.1_ref01 (with STL) and run bin/SUN-CC/exampleN01 | tee zz and the memory exploded. While just changing G4cout to cout kept the memory equal even after zz file was over 10 Mb. I found the same problem on Sun and linux. Actually I think I have always had this problem and I already systematically studied it with geant4.0.0_ref08 in june 99 and mailed the expert (maybe the wrong one) about it.