NTNU-IHB / FMI4cpp

FMI 2.0 implementation written in modern C++.
MIT License
98 stars 37 forks source link

Program will always crash if a prior run crashed without deleting the temporal folder. #18

Closed markaren closed 6 years ago

markaren commented 6 years ago

Program will always crash if a prior run crashed without deleting the temporal folder. If the folder is manually deleted from the temp directory (fmi4cpp generated folders are prefixed with fmi4cpp_), things will start working again.

I don't understand why this is happening as folders are generated per FMU and should not affect independent program runs..

markaren commented 6 years ago

rand() is evil.. Solved by using std::uniform_int_distribution