Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. debug assertion failed

debug assertion failed

Scheduled Pinned Locked Moved C / C++ / MFC
c++debugginghelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mrby123
    wrote on last edited by
    #1

    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) {

    L 1 Reply Last reply
    0
    • M mrby123

      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) {

      L Offline
      L Offline
      lastgen
      wrote on last edited by
      #2

      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!!!

      M 1 Reply Last reply
      0
      • L lastgen

        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!!!

        M Offline
        M Offline
        mrby123
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups