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. Application Crash problem

Application Crash problem

Scheduled Pinned Locked Moved C / C++ / MFC
c++help
6 Posts 3 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.
  • A Offline
    A Offline
    Atul23
    wrote on last edited by
    #1

    Hi ALL, I am doing project in VC++ 6.0, When I run the application, application gets crash. Message box is display with 3 button as "Don't Send" ,"Ignore" and "send". I check all values in my function if there is any NULL value.In my code there is no NULL value is occured any object. Please send me solution to this problem if anybody have. Tell me the possibilities of application crash. Thanks in Advance

    hi

    Steve EcholsS 1 Reply Last reply
    0
    • A Atul23

      Hi ALL, I am doing project in VC++ 6.0, When I run the application, application gets crash. Message box is display with 3 button as "Don't Send" ,"Ignore" and "send". I check all values in my function if there is any NULL value.In my code there is no NULL value is occured any object. Please send me solution to this problem if anybody have. Tell me the possibilities of application crash. Thanks in Advance

      hi

      Steve EcholsS Offline
      Steve EcholsS Offline
      Steve Echols
      wrote on last edited by
      #2

      Have you tried debugging the program? Build, Start Debug, Go (or hit F5). Make sure you compile in debug mode (Build, Set Active Configuration to Win32 Debug). This should stop on the line of code that's causing the problem. Otherwise, post some code.


      - S 50 cups of coffee and you know it's on!

      • S
        50 cups of coffee and you know it's on!
        Code, follow, or get out of the way.
      A 1 Reply Last reply
      0
      • Steve EcholsS Steve Echols

        Have you tried debugging the program? Build, Start Debug, Go (or hit F5). Make sure you compile in debug mode (Build, Set Active Configuration to Win32 Debug). This should stop on the line of code that's causing the problem. Otherwise, post some code.


        - S 50 cups of coffee and you know it's on!

        A Offline
        A Offline
        Atul23
        wrote on last edited by
        #3

        Hi Steve, I write code in CPageView class which is derived from CView class. My project is to create web page design tool. when I create page by using my code, as the page is open there is error ocuure. I write customize function to open web page. The error is occur after page is open and application gets crash with messgeBox having 3 buttons as Send Error,Don't sent error and ignore. void CPageView::OpenWebSite(int nTabIndex) { if(nTabIndex > 0 && nTabIndex < nSize+1) { CString strPagePath = pFrame->m_selWebPagePaths.GetAt(nTabIndex-1); theApp.OpenDocumentFile(strPagePath); } } Thanks Abm

        Steve EcholsS 1 Reply Last reply
        0
        • A Atul23

          Hi Steve, I write code in CPageView class which is derived from CView class. My project is to create web page design tool. when I create page by using my code, as the page is open there is error ocuure. I write customize function to open web page. The error is occur after page is open and application gets crash with messgeBox having 3 buttons as Send Error,Don't sent error and ignore. void CPageView::OpenWebSite(int nTabIndex) { if(nTabIndex > 0 && nTabIndex < nSize+1) { CString strPagePath = pFrame->m_selWebPagePaths.GetAt(nTabIndex-1); theApp.OpenDocumentFile(strPagePath); } } Thanks Abm

          Steve EcholsS Offline
          Steve EcholsS Offline
          Steve Echols
          wrote on last edited by
          #4

          Potential problems I see: 1. pFrame is null 2. (nTabIndex - 1) is out of range of the array 3. nSize is not the actual size of the array being indexed You're probably trying to access an element of m_selWebPagePaths that doesn't exist. Put a breakpoint in there and check the value of nTabIndex and nSize. Make sure nSize is the same as m_selWebPagePaths.Count (or GetSize).


          - S 50 cups of coffee and you know it's on!

          • S
            50 cups of coffee and you know it's on!
            Code, follow, or get out of the way.
          A 1 Reply Last reply
          0
          • Steve EcholsS Steve Echols

            Potential problems I see: 1. pFrame is null 2. (nTabIndex - 1) is out of range of the array 3. nSize is not the actual size of the array being indexed You're probably trying to access an element of m_selWebPagePaths that doesn't exist. Put a breakpoint in there and check the value of nTabIndex and nSize. Make sure nSize is the same as m_selWebPagePaths.Count (or GetSize).


            - S 50 cups of coffee and you know it's on!

            A Offline
            A Offline
            Atul23
            wrote on last edited by
            #5

            Hi Steve, I check above all values by adding break point. There is no NULL value so OpenDocument() function called sucessfully and document is open. but after opening the document the application get crash. that is the main problem here. please give me some hint if know !!! Thanks in Advance abm

            C 1 Reply Last reply
            0
            • A Atul23

              Hi Steve, I check above all values by adding break point. There is no NULL value so OpenDocument() function called sucessfully and document is open. but after opening the document the application get crash. that is the main problem here. please give me some hint if know !!! Thanks in Advance abm

              C Offline
              C Offline
              CPallini
              wrote on last edited by
              #6

              When you run the application is in debug mode, the IDE gives valuable info (see for instance call stack window) about the error occurred. Try to detect the exactly the troublesome point and post the relevant code. :)

              If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
              [my articles]

              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