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. Unhandled exception in ntdll.dll access violation reading location 0xFFFFFFFFFFFFFFFF

Unhandled exception in ntdll.dll access violation reading location 0xFFFFFFFFFFFFFFFF

Scheduled Pinned Locked Moved C / C++ / MFC
debugging
7 Posts 4 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.
  • F Offline
    F Offline
    ForNow
    wrote on last edited by
    #1

    I get this message all of the sudden while I have a modless Cdialog and Richedit displayed When I switch the debugger to threads I see a number of ntdll.dll worker threads Can somebody point me in the right path Thanks

    V L 2 Replies Last reply
    0
    • F ForNow

      I get this message all of the sudden while I have a modless Cdialog and Richedit displayed When I switch the debugger to threads I see a number of ntdll.dll worker threads Can somebody point me in the right path Thanks

      V Offline
      V Offline
      Victor Nijegorodov
      wrote on last edited by
      #2

      Just look at the Call Stack and find in this list your own (last called) module. Click on it to see what was your command/operation that caused the exception

      F 1 Reply Last reply
      0
      • V Victor Nijegorodov

        Just look at the Call Stack and find in this list your own (last called) module. Click on it to see what was your command/operation that caused the exception

        F Offline
        F Offline
        ForNow
        wrote on last edited by
        #3

        I did that went to the main thread (and looked at the stack) it pointed to thrdcore.cpp !::GetMessage(&(pState->m_msgcur line 155 Please note I have created 5 other Threads 4 UI threads which act as a wrappers for my Derived CAsynSocket Class and a regular worker thread Thanks

        L 1 Reply Last reply
        0
        • F ForNow

          I did that went to the main thread (and looked at the stack) it pointed to thrdcore.cpp !::GetMessage(&(pState->m_msgcur line 155 Please note I have created 5 other Threads 4 UI threads which act as a wrappers for my Derived CAsynSocket Class and a regular worker thread Thanks

          L Offline
          L Offline
          leon de boer
          wrote on last edited by
          #4

          Access violation means that you're accessing memory that hasn't been allocated to your application ... so do the obvious. Go back a few steps on the stack and look at the sequence and look at all the pointer use and check 1.) The pointer is valid 2.) Is what it pointing at allocated 3.) If it is required that the structure it points to #0 terminated ... is it. Something in the last calls is failing one of those criteria, if need separate every pointer to a temp line of code in those sections and run a debug test on it.

          In vino veritas

          1 Reply Last reply
          0
          • F ForNow

            I get this message all of the sudden while I have a modless Cdialog and Richedit displayed When I switch the debugger to threads I see a number of ntdll.dll worker threads Can somebody point me in the right path Thanks

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Without some more information about where this happened, the code that caused it, and the values of the variables involved, it is impossible even to make any suggestions. The only thing one can say is that you are using either an uninitialised variable, or one that has received an invalid value.

            F 1 Reply Last reply
            0
            • L Lost User

              Without some more information about where this happened, the code that caused it, and the values of the variables involved, it is impossible even to make any suggestions. The only thing one can say is that you are using either an uninitialised variable, or one that has received an invalid value.

              F Offline
              F Offline
              ForNow
              wrote on last edited by
              #6

              The strange thing Is there all these worker threads (ntdll.dll) that seem to have come up okay Thanks

              L 1 Reply Last reply
              0
              • F ForNow

                The strange thing Is there all these worker threads (ntdll.dll) that seem to have come up okay Thanks

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                ForNow wrote:

                all these worker threads (ntdll.dll) that seem to have come up okay

                But that does not mean anything. The only way to solve this sort of problem is by tracking back to the point where the fault is created. This may be a simple bug in your code, cross-thread corruption, or any one of a million other things happening.

                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