Crash at customized button
-
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
-
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
kDevloper wrote:
CButton::DrawItem(tagDRAWITEMSTRUCT * 0x0012e204) line 72 + 25 bytes
So what is at line 72? Didn't you debug?
nave [OpenedFileFinder]
-
kDevloper wrote:
CButton::DrawItem(tagDRAWITEMSTRUCT * 0x0012e204) line 72 + 25 bytes
So what is at line 72? Didn't you debug?
nave [OpenedFileFinder]
-
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.
-
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]
-
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]
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 :)
-
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 :)
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]
-
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 :)
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:
-
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 :)
-
Why you down voted naveen's replies ?? To satisfy your ego ??? Down voting will not give answer to your problem
Regards, Sandip.
Thanks for the vote pal..
nave [OpenedFileFinder]
-
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:
-
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 :)
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]