[Bayes++] simple example of crash on destruction of SIR_scheme
Brought to you by:
mistevens
|
From: yon <yo...@ci...> - 2007-09-15 20:08:55
|
Hello All,
I took the time to remove elements of my program until nothing else
remained. A different search strategy would have been smarter.
The program below hangs when the SIR_scheme instance is destroyed.
This is a fresh project, cleaned, etc. It hangs when the std::vector
allocator is destroying each element of the array, because the array
bounds are invalid after SIR_scheme is created.
I didn't have such problems earlier. I'm assuming one of the
following has gotten corrupted on my computer: bayes++, STL, boost,
or gcc. Any guesses? My next idea is to rebuild libraries. I'll
start with bayes++.
cheers,
Yon
#include "../Bayes++/BayesFilter/bayesFlt.hpp"
#include "../Bayes++/BayesFilter/SIRFlt.hpp"
namespace ublas = boost::numeric::ublas;
using namespace Bayesian_filter;
using namespace boost::numeric::ublas;
struct SIR_random_my : public Bayesian_filter::SIR_random
{
public:
void normal(Bayesian_filter::FM::DenseVec& v) {};
void uniform_01(Bayesian_filter::FM::DenseVec& v) {};
};
int main(void)
{
SIR_random_my RandomHelper;
{ Bayesian_filter::SIR_scheme mySirScheme2(9, 13, RandomHelper);}
}
|