vinniefalco / DSPFilters

A Collection of Useful C++ Classes for Digital Signal Processing
1.83k stars 375 forks source link

Debug assertion failed! I only declare a filter object. #35

Open FlavioRaschella opened 7 years ago

FlavioRaschella commented 7 years ago

Hi,

I am facing this issue on VS10 Ultimate. This is the procedute I apply: 1) Go to: DSPFilter\shared\DSPFilters\Builds\VisualStudio2010\DSPFilters.sln and compile it --> I get the .lib file 2) In my solution: Properties-->Configuration properties --> VC++ Directories: link the library and the include directories. a. DSPFilter_FR\shared\DSPFilters\include b. DSPFilters-Output\Products\Win32Debug 3) In the main.h file I add:

include "DspFilters\Butterworth.h"

include "DspFilters\Dsp.h"

Dsp::SimpleFilter<Dsp::Butterworth::LowPass <4>,10> m_lpFilter;

It compiles without problems. Instead, when I run it, I get the error. However, if I comment the m_lpFilter variable declaration, it runs without any problem.

Can you help me on solving this issue?

Thanks in advance, Flavio