-
Notifications
You must be signed in to change notification settings - Fork 10
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
fix mc-years bug --windows #697
Conversation
64b3a20
to
c4ef40a
Compare
@@ -21,40 +21,41 @@ SolverFactory::SolverFactory() { | |||
|
|||
SolverAbstract::Ptr SolverFactory::create_solver( | |||
const std::string &solver_name, const SOLVER_TYPE solver_type) const { | |||
return create_solver(solver_name, solver_type, ""); | |||
auto log_manager = SolverLogManager(""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
J'ai l'impression qu'on a une "dangling reference" ici, ou un problème de gestion de la durée de vie des file pointers.
log_manager est créé sur la stack dans le scope de create_solver. On créé des solver qui vont pointer sur les FP de log_manager.
Quand on retourne un solver, on sort du scope, log_manager est détruit, donc on ferme le FP. Par contre les solver sont vivant et vont vouloir écrire dans les FP
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bien vu !
Kudos, SonarCloud Quality Gate passed! |
close AntaresXpansion - number of MC years #688