#7 ekfilter_impl.hpp - little bug?

v1.0
closed
General (5)
5
2010-02-16
2010-02-16
phoad
No

In ekfilter_impl.hpp
The constructor did not inialize the local variables; flags, no, nu, nw, m, nv.
In Windows XP, with Visual Studio 2007 I am compiling and running the code inside of the editor successfully. However when i run the program by double clicking, I think because of these non-initialized variables at a point these variables take various values and program crashes.
In fact when I put initialization code for these variables, 0 for them at the constructor, line 95, the problem is solved for me.

Discussion

  • Vincent Zalzal
    Vincent Zalzal
    2010-02-16

    Even if this design decision is debatable, you must call SetDim() right after construction to initialize no, nu, etc. This should solve your problem too. Please tell me if it does not work.

     
  • Vincent Zalzal
    Vincent Zalzal
    2010-02-16

    • status: open --> closed