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. Programming Applications for Windows (J Richter)

Programming Applications for Windows (J Richter)

Scheduled Pinned Locked Moved C / C++ / MFC
csharpdata-structureshelptutorialquestion
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.
  • J Offline
    J Offline
    JGStanier
    wrote on last edited by
    #1

    Am trying to get Jeffrey's LastMesaageBox example hooking software working on XP using Microsoft Development Studio .NET. I keep getting an error that the stack is overflowing just when the message box is being displayed. Anyone have any ideas?:sigh:

    V J 2 Replies Last reply
    0
    • J JGStanier

      Am trying to get Jeffrey's LastMesaageBox example hooking software working on XP using Microsoft Development Studio .NET. I keep getting an error that the stack is overflowing just when the message box is being displayed. Anyone have any ideas?:sigh:

      V Offline
      V Offline
      valikac
      wrote on last edited by
      #2

      Debug it. Where is the error linked to? Kuphryn

      J 1 Reply Last reply
      0
      • V valikac

        Debug it. Where is the error linked to? Kuphryn

        J Offline
        J Offline
        JGStanier
        wrote on last edited by
        #3

        It says "Unhandled exception at 0x10011669 in 22 LastMsgBoxInfo.exe: 0xC00000FD: Stack overflow." It then says "There is no source code available for the current location." so I look at the Disassembled version and can't figure out what's going on. Any way of looking at assembler code to debug?Hope you can help.

        1 Reply Last reply
        0
        • J JGStanier

          Am trying to get Jeffrey's LastMesaageBox example hooking software working on XP using Microsoft Development Studio .NET. I keep getting an error that the stack is overflowing just when the message box is being displayed. Anyone have any ideas?:sigh:

          J Offline
          J Offline
          John M Drescher
          wrote on last edited by
          #4

          Most likely you are doing infinite recursion which is very easy to do with hooks... John

          J 1 Reply Last reply
          0
          • J John M Drescher

            Most likely you are doing infinite recursion which is very easy to do with hooks... John

            J Offline
            J Offline
            JGStanier
            wrote on last edited by
            #5

            Thought so, the stack was full of repeated function calls. Can't see why this is happening though, how come it is easy to do with hooks? Any way of preventing this? Thanks.

            J 1 Reply Last reply
            0
            • J JGStanier

              Thought so, the stack was full of repeated function calls. Can't see why this is happening though, how come it is easy to do with hooks? Any way of preventing this? Thanks.

              J Offline
              J Offline
              John M Drescher
              wrote on last edited by
              #6

              if you do the wrong thing you can end up calling yourself by passing the hook on to the next hook in the list. Try commenting out the CallNextHookEx part and see if it crashes again... John

              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