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. mfc42.dll

mfc42.dll

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

    Hi, Can anyone tell me what is this exception? Unhandled exception in mytest.exe(mfc42.dll):0xc00000096 privileged Instruction. Regards Neaha

    A 1 Reply Last reply
    0
    • N Neha

      Hi, Can anyone tell me what is this exception? Unhandled exception in mytest.exe(mfc42.dll):0xc00000096 privileged Instruction. Regards Neaha

      A Offline
      A Offline
      Adam Gritt
      wrote on last edited by
      #2

      I believe it usually happens when you are passing invalid parameters to the base classes or you are trying to access data when it hasn't been created yet (invalid data).

      N 1 Reply Last reply
      0
      • A Adam Gritt

        I believe it usually happens when you are passing invalid parameters to the base classes or you are trying to access data when it hasn't been created yet (invalid data).

        N Offline
        N Offline
        Neha
        wrote on last edited by
        #3

        But it is happening at m_str=new double[256*256]; where m_str is double *

        A A O 3 Replies Last reply
        0
        • N Neha

          But it is happening at m_str=new double[256*256]; where m_str is double *

          A Offline
          A Offline
          Adam Gritt
          wrote on last edited by
          #4

          That line of code looks fine. without looking at the rest of the code around it I don't know for sure.

          1 Reply Last reply
          0
          • N Neha

            But it is happening at m_str=new double[256*256]; where m_str is double *

            A Offline
            A Offline
            Alvaro Mendez
            wrote on last edited by
            #5

            By the way, if the array is always made up of 65536 doubles, then why not, double m_str[65536]; It's much faster and you don't have to worry about freeing it later. Regards, Alvaro


            Can I ask you a question?

            S 1 Reply Last reply
            0
            • A Alvaro Mendez

              By the way, if the array is always made up of 65536 doubles, then why not, double m_str[65536]; It's much faster and you don't have to worry about freeing it later. Regards, Alvaro


              Can I ask you a question?

              S Offline
              S Offline
              Steve S
              wrote on last edited by
              #6

              Yum. A 512Kb allocation. Hope that sucker isn't on the stack.... Steve S

              1 Reply Last reply
              0
              • N Neha

                But it is happening at m_str=new double[256*256]; where m_str is double *

                O Offline
                O Offline
                Orhun Birsoy
                wrote on last edited by
                #7

                Are you using SSE or SSE2 by any chance? If you are, I might answer your question.

                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