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. Crash at customized button

Crash at customized button

Scheduled Pinned Locked Moved C / C++ / MFC
data-structuresquestion
12 Posts 5 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.
  • K Offline
    K Offline
    kDevloper
    wrote on last edited by
    #1

    Hi, i am using customized buttons in a dialog. 1: i am handling a set of 36 buttons click . it's not at all called on click of any of the buttons with in this range. 2: Crash at draw item. here is the call stack CButton::DrawItem(tagDRAWITEMSTRUCT * 0x0012e204) line 72 + 25 bytes CButton::OnChildNotify(unsigned int 43, unsigned int 2449, long 1237508, long * 0x00000000) line 84 CWnd::SendChildNotifyLastMsg(long * 0x00000000) line 2694 CWnd::ReflectLastMsg(HWND__ * 0x000a0a66, long * 0x00000000) line 2732 CWnd::OnDrawItem(int 2449, tagDRAWITEMSTRUCT * 0x0012e204) line 1167 + 14 bytes CWnd::OnWndMsg(unsigned int 43, unsigned int 2449, long 1237508, long * 0x0012e0a4) line 1941 CWnd::WindowProc(unsigned int 43, unsigned int 2449, long 1237508) line 1596 + 30 bytes AfxCallWndProc(CWnd * 0x0012ec10 {CCustColorDialog hWnd=???}, HWND__ * 0x000a0a6a, unsigned int 43, unsigned int 2449, long 1237508) line 215 + 26 bytes AfxWndProc(HWND__ * 0x000a0a6a, unsigned int 43, unsigned int 2449, long 1237508) line 379 AfxWndProcBase(HWND__ * 0x000a0a6a, unsigned int 43, unsigned int 2449, long 1237508) line 220 + 21 bytes USER32! 77e3a454() USER32! 77e16382() USER32! 77e17361() USER32! 77e3b66b() USER32! 77e2b788() USER32! 77e3b7b6() USER32! 77e2e106() USER32! 77e3a454() USER32! 77e16b41() USER32! 77e16b64() CWnd::DefWindowProcA(unsigned int 296, unsigned int 196610, long 0) line 1011 + 32 bytes CWnd::WindowProc(unsigned int 296, unsigned int 196610, long 0) line 1597 + 26 bytes AfxCallWndProc(CWnd * 0x0012ec70 {CCustButton hWnd=???}, HWND__ * 0x000a0a66, unsigned int 296, unsigned int 196610, long 0) line 215 + 26 bytes AfxWndProc(HWND__ * 0x000a0a66, unsigned int 296, unsigned int 196610, long 0) line 379 AfxWndProcBase(HWND__ * 0x000a0a66, unsigned int 296, unsigned int 196610, long 0) line 220 + 21 bytes USER32! 77e3a454() USER32! 77e14750() USER32! 77e155b0() NTDLL! 77f91baf() USER32! 77e29302() USER32! 77e2d428() USER32! 77e16b41() USER32! 77e16b64() CWnd::DefWindowProcA(unsigned int 296, unsigned int 196610, long 0) line 1011 + 32 bytes CWnd::WindowProc(unsigned int 296, unsigned int 196610, long 0) line 1597 + 26 bytes AfxCallWndProc(CWnd * 0x0012ec10 {CCustColorDialog hWnd=???}, HWND__ * 0x000a0a6a, unsigned int 296, unsigned int 196610, long 0) line 215 + 26 bytes AfxWndProc(HWND__ * 0x000a0a6a, unsigned int 296, unsigned int 196610, long 0) line 379 AfxWndProcBase(HWND__ * 0x000a0a6a, unsigned int 296, unsigned int 196610, long 0) line 220 + 21 bytes USER32! 77e3a454() USE

    N 1 Reply Last reply
    0
    • K kDevloper

      Hi, i am using customized buttons in a dialog. 1: i am handling a set of 36 buttons click . it's not at all called on click of any of the buttons with in this range. 2: Crash at draw item. here is the call stack CButton::DrawItem(tagDRAWITEMSTRUCT * 0x0012e204) line 72 + 25 bytes CButton::OnChildNotify(unsigned int 43, unsigned int 2449, long 1237508, long * 0x00000000) line 84 CWnd::SendChildNotifyLastMsg(long * 0x00000000) line 2694 CWnd::ReflectLastMsg(HWND__ * 0x000a0a66, long * 0x00000000) line 2732 CWnd::OnDrawItem(int 2449, tagDRAWITEMSTRUCT * 0x0012e204) line 1167 + 14 bytes CWnd::OnWndMsg(unsigned int 43, unsigned int 2449, long 1237508, long * 0x0012e0a4) line 1941 CWnd::WindowProc(unsigned int 43, unsigned int 2449, long 1237508) line 1596 + 30 bytes AfxCallWndProc(CWnd * 0x0012ec10 {CCustColorDialog hWnd=???}, HWND__ * 0x000a0a6a, unsigned int 43, unsigned int 2449, long 1237508) line 215 + 26 bytes AfxWndProc(HWND__ * 0x000a0a6a, unsigned int 43, unsigned int 2449, long 1237508) line 379 AfxWndProcBase(HWND__ * 0x000a0a6a, unsigned int 43, unsigned int 2449, long 1237508) line 220 + 21 bytes USER32! 77e3a454() USER32! 77e16382() USER32! 77e17361() USER32! 77e3b66b() USER32! 77e2b788() USER32! 77e3b7b6() USER32! 77e2e106() USER32! 77e3a454() USER32! 77e16b41() USER32! 77e16b64() CWnd::DefWindowProcA(unsigned int 296, unsigned int 196610, long 0) line 1011 + 32 bytes CWnd::WindowProc(unsigned int 296, unsigned int 196610, long 0) line 1597 + 26 bytes AfxCallWndProc(CWnd * 0x0012ec70 {CCustButton hWnd=???}, HWND__ * 0x000a0a66, unsigned int 296, unsigned int 196610, long 0) line 215 + 26 bytes AfxWndProc(HWND__ * 0x000a0a66, unsigned int 296, unsigned int 196610, long 0) line 379 AfxWndProcBase(HWND__ * 0x000a0a66, unsigned int 296, unsigned int 196610, long 0) line 220 + 21 bytes USER32! 77e3a454() USER32! 77e14750() USER32! 77e155b0() NTDLL! 77f91baf() USER32! 77e29302() USER32! 77e2d428() USER32! 77e16b41() USER32! 77e16b64() CWnd::DefWindowProcA(unsigned int 296, unsigned int 196610, long 0) line 1011 + 32 bytes CWnd::WindowProc(unsigned int 296, unsigned int 196610, long 0) line 1597 + 26 bytes AfxCallWndProc(CWnd * 0x0012ec10 {CCustColorDialog hWnd=???}, HWND__ * 0x000a0a6a, unsigned int 296, unsigned int 196610, long 0) line 215 + 26 bytes AfxWndProc(HWND__ * 0x000a0a6a, unsigned int 296, unsigned int 196610, long 0) line 379 AfxWndProcBase(HWND__ * 0x000a0a6a, unsigned int 296, unsigned int 196610, long 0) line 220 + 21 bytes USER32! 77e3a454() USE

      N Offline
      N Offline
      Naveen
      wrote on last edited by
      #2

      kDevloper wrote:

      CButton::DrawItem(tagDRAWITEMSTRUCT * 0x0012e204) line 72 + 25 bytes

      So what is at line 72? Didn't you debug?

      nave [OpenedFileFinder]

      K 1 Reply Last reply
      0
      • N Naveen

        kDevloper wrote:

        CButton::DrawItem(tagDRAWITEMSTRUCT * 0x0012e204) line 72 + 25 bytes

        So what is at line 72? Didn't you debug?

        nave [OpenedFileFinder]

        K Offline
        K Offline
        kDevloper
        wrote on last edited by
        #3

        I too know it's in line no 72, but am asking how to fix it :) ..

        S N 2 Replies Last reply
        0
        • K kDevloper

          I too know it's in line no 72, but am asking how to fix it :) ..

          S Offline
          S Offline
          SandipG
          wrote on last edited by
          #4

          kDevloper wrote:

          I too know it's in line no 72, but am asking how to fix it Smile .. Quote Selected Text

          But we dont know what is on line 72 :) so you might want to post some code here??? Naveen asked that did you debug line 72 to check what is causing crash??

          Regards, Sandip.

          1 Reply Last reply
          0
          • K kDevloper

            I too know it's in line no 72, but am asking how to fix it :) ..

            N Offline
            N Offline
            Naveen
            wrote on last edited by
            #5

            Please understand that we dont have any super powers to know what you have written on line 72.... :mad: So if you want some answer paste you code here and tell which line is 72..

            nave [OpenedFileFinder]

            K 1 Reply Last reply
            0
            • N Naveen

              Please understand that we dont have any super powers to know what you have written on line 72.... :mad: So if you want some answer paste you code here and tell which line is 72..

              nave [OpenedFileFinder]

              K Offline
              K Offline
              kDevloper
              wrote on last edited by
              #6

              I dont think this is not the right way to answer some one.. n e ways am not here to see or ask for any super power or paste the answer for me by some one. u shud 1st read before answering some one. How to get an answer to your question by Chris Maunder :)

              N E S T 4 Replies Last reply
              0
              • K kDevloper

                I dont think this is not the right way to answer some one.. n e ways am not here to see or ask for any super power or paste the answer for me by some one. u shud 1st read before answering some one. How to get an answer to your question by Chris Maunder :)

                N Offline
                N Offline
                Naveen
                wrote on last edited by
                #7

                kDevloper wrote:

                I dont think this is not the right way to answer some one

                I know. But you didnt left me a choice.

                kDevloper wrote:

                or paste the answer for me by some one

                But If some one wants to point out the mistake, they should know the code..right? When I asked for the code..what did you say..?

                kDevloper wrote:

                How to get an answer to your question by Chris Maunder

                :confused: Actually I am supposed to you tell you that...

                nave [OpenedFileFinder]

                1 Reply Last reply
                0
                • K kDevloper

                  I dont think this is not the right way to answer some one.. n e ways am not here to see or ask for any super power or paste the answer for me by some one. u shud 1st read before answering some one. How to get an answer to your question by Chris Maunder :)

                  E Offline
                  E Offline
                  Emilio Garavaglia
                  wrote on last edited by
                  #8

                  The first point to get an answeer is to post a answerable question. We all suspect that you have a file tha on its 72th line calls the haed of the stack you post, passing a wrong paramenter or a paramenter carrying wrong values. But the only way for us to know abuit it is to see that line and at least the 10 liens before it.

                  2 bugs found. > recompile ... 65534 bugs found. :doh:

                  K 1 Reply Last reply
                  0
                  • K kDevloper

                    I dont think this is not the right way to answer some one.. n e ways am not here to see or ask for any super power or paste the answer for me by some one. u shud 1st read before answering some one. How to get an answer to your question by Chris Maunder :)

                    S Offline
                    S Offline
                    SandipG
                    wrote on last edited by
                    #9

                    Why you down voted naveen's replies ?? To satisfy your ego ??? Down voting will not give answer to your problem

                    Regards, Sandip.

                    N 1 Reply Last reply
                    0
                    • S SandipG

                      Why you down voted naveen's replies ?? To satisfy your ego ??? Down voting will not give answer to your problem

                      Regards, Sandip.

                      N Offline
                      N Offline
                      Naveen
                      wrote on last edited by
                      #10

                      Thanks for the vote pal..

                      nave [OpenedFileFinder]

                      1 Reply Last reply
                      0
                      • E Emilio Garavaglia

                        The first point to get an answeer is to post a answerable question. We all suspect that you have a file tha on its 72th line calls the haed of the stack you post, passing a wrong paramenter or a paramenter carrying wrong values. But the only way for us to know abuit it is to see that line and at least the 10 liens before it.

                        2 bugs found. > recompile ... 65534 bugs found. :doh:

                        K Offline
                        K Offline
                        kDevloper
                        wrote on last edited by
                        #11

                        During the conversation n fighting session i got the answer to my pbm.. Thanks For the info. Regards, KDevloper

                        1 Reply Last reply
                        0
                        • K kDevloper

                          I dont think this is not the right way to answer some one.. n e ways am not here to see or ask for any super power or paste the answer for me by some one. u shud 1st read before answering some one. How to get an answer to your question by Chris Maunder :)

                          T Offline
                          T Offline
                          toxcct
                          wrote on last edited by
                          #12

                          kDevloper wrote:

                          I dont think this is not the right way to answer some one..

                          you f*ckin idiot. Is that better ? ;P so, you think coming and asking crap will bring you the solution to you problem, always ? come on, be serious, and grow up a bit. Naveen wasn't aggressive at all. the point with super powers is that you just don't give us all the informations we need to understand what's going on at Line 72, and still you don't show it after request. What are you hoping man ?

                          kDevloper wrote:

                          n e ways

                          that's not a proper way to talk on a forum either. you have to write full words, no SMS.

                          kDevloper wrote:

                          u shud 1st read before answering some one

                          I believe YOU should read the answers and be more modest instead of being rude with someone with much more experience than you. If he asked you what was on Line 72, it's because he read all your huge errors report pasted (which I personnally didn't bother to read entierely at first), don't you think ?

                          kDevloper wrote:

                          How to get an answer to your question by Chris Maunder

                          again, it's something YOU should read AND understand. Also, try to put on our place. would you be able to help someone asking for help if he brings a crappy error report without any code sample to analyze ?

                          [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

                          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