debug assertion failed
-
I have a c++ progeam calling a subroutine. The variables are passed correctly, But just step into the subroutine at the first line under the subroutine header by break point, I got error message: "debug assertion failed" ....... ....... complexFFT(sd_l,np_seed,np_seed1,isign); ....... ....... void CData_vib_procDlg::complexFFT(float data[],unsigned int &number_of_samples,unsigned int &sample_rate,int &sign) {
-
I have a c++ progeam calling a subroutine. The variables are passed correctly, But just step into the subroutine at the first line under the subroutine header by break point, I got error message: "debug assertion failed" ....... ....... complexFFT(sd_l,np_seed,np_seed1,isign); ....... ....... void CData_vib_procDlg::complexFFT(float data[],unsigned int &number_of_samples,unsigned int &sample_rate,int &sign) {
An assertion has failed. Check the parameters you are passing to the function. Sorry about the vague answer but with the information you give I don't think it can be narrowed down much further. Give us more details/source code if you want us to give you a more detailed response. eg where are sd_l, np_seed, np_seed1, isign defined, and what types are they? What values do they have? What is the exact assertion? The assertions are there for debugging usually to tell you that something you you sent the function is invalid. When I die I'd like to go peacefully in my sleep like my father, not screaming in terror like his passengers!!!
-
An assertion has failed. Check the parameters you are passing to the function. Sorry about the vague answer but with the information you give I don't think it can be narrowed down much further. Give us more details/source code if you want us to give you a more detailed response. eg where are sd_l, np_seed, np_seed1, isign defined, and what types are they? What values do they have? What is the exact assertion? The assertions are there for debugging usually to tell you that something you you sent the function is invalid. When I die I'd like to go peacefully in my sleep like my father, not screaming in terror like his passengers!!!
sd_l is a float type array - sd_l[i], i=0,1,...np_seed-1, np_seed and np_seed1 are unsigned int, np_seed1 = 4096 void CData_vib_procDlg::complexFFT(float data[],unsigned int &number_of_samples,unsigned int &sample_rate,int &sign) { ........ -- modified at 0:04 Tuesday 11th April, 2006