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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. slightly puzzled...

slightly puzzled...

Scheduled Pinned Locked Moved C / C++ / MFC
c++comannouncement
5 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.
  • L Offline
    L Offline
    l a u r e n
    wrote on last edited by
    #1

    i am getting a bunch of these warning messages after my OnInitDialog() exits: First-chance exception in 8028c.exe (KERNEL32.DLL): 0xC0000005: Access Violation. and i have absolutely no idea why ... i traced it down into the depths of wincore.cpp and its friends but god only knows what they get up to when they're bored ... thing is my app doesn't go squiff even in release mode so i'm a wondering if its something i can ignore or should i be afraid ... very afraid :confused:


    "... and so i said to him ... if it can't dance and you can't eat it either f**k it or throw it away"
    8028finder.com

    H R J 3 Replies Last reply
    0
    • L l a u r e n

      i am getting a bunch of these warning messages after my OnInitDialog() exits: First-chance exception in 8028c.exe (KERNEL32.DLL): 0xC0000005: Access Violation. and i have absolutely no idea why ... i traced it down into the depths of wincore.cpp and its friends but god only knows what they get up to when they're bored ... thing is my app doesn't go squiff even in release mode so i'm a wondering if its something i can ignore or should i be afraid ... very afraid :confused:


      "... and so i said to him ... if it can't dance and you can't eat it either f**k it or throw it away"
      8028finder.com

      H Offline
      H Offline
      Henk Groenewoud
      wrote on last edited by
      #2

      What does your code look like. It sounds like an initialization problem.

      1 Reply Last reply
      0
      • L l a u r e n

        i am getting a bunch of these warning messages after my OnInitDialog() exits: First-chance exception in 8028c.exe (KERNEL32.DLL): 0xC0000005: Access Violation. and i have absolutely no idea why ... i traced it down into the depths of wincore.cpp and its friends but god only knows what they get up to when they're bored ... thing is my app doesn't go squiff even in release mode so i'm a wondering if its something i can ignore or should i be afraid ... very afraid :confused:


        "... and so i said to him ... if it can't dance and you can't eat it either f**k it or throw it away"
        8028finder.com

        R Offline
        R Offline
        Roger Allen
        wrote on last edited by
        #3

        Do you have an ActiveX control on your dialog? I get these when I have an in-house ActiveX control in use. I think the windows system is trying to access a default function that is not present or some such. Doesn't seem to affect how my program works. Roger Allen Sonork 100.10016 If I had a quote, it would be a very good one.

        1 Reply Last reply
        0
        • L l a u r e n

          i am getting a bunch of these warning messages after my OnInitDialog() exits: First-chance exception in 8028c.exe (KERNEL32.DLL): 0xC0000005: Access Violation. and i have absolutely no idea why ... i traced it down into the depths of wincore.cpp and its friends but god only knows what they get up to when they're bored ... thing is my app doesn't go squiff even in release mode so i'm a wondering if its something i can ignore or should i be afraid ... very afraid :confused:


          "... and so i said to him ... if it can't dance and you can't eat it either f**k it or throw it away"
          8028finder.com

          J Offline
          J Offline
          Jonathan Craig
          wrote on last edited by
          #4

          I found this article in the MSDN: INFO: First and Second Chance Exception Handling Q105675 It explains what you are seeing. There are many DLLs (and other code) that throw exceptions on purpose to see if things are valid. I have used this technique to check if memory-mapped files have real memory allocated for them. From the article, the debugger sees these exceptions before the application does. It creates a warning before a handler is able to catch the exception. Note that they must be getting handled or your application would crash. I see them also in most of my applications and they are safe. I have written hundreds of applications and never seen these messages to be a problem. Hope this helps...:) Jonathan Craig www.mcw-tech.com

          L 1 Reply Last reply
          0
          • J Jonathan Craig

            I found this article in the MSDN: INFO: First and Second Chance Exception Handling Q105675 It explains what you are seeing. There are many DLLs (and other code) that throw exceptions on purpose to see if things are valid. I have used this technique to check if memory-mapped files have real memory allocated for them. From the article, the debugger sees these exceptions before the application does. It creates a warning before a handler is able to catch the exception. Note that they must be getting handled or your application would crash. I see them also in most of my applications and they are safe. I have written hundreds of applications and never seen these messages to be a problem. Hope this helps...:) Jonathan Craig www.mcw-tech.com

            L Offline
            L Offline
            l a u r e n
            wrote on last edited by
            #5

            awesome thanks for the info i wondered why my release build wasnt dying at the very least :-D


            "... and so i said to him ... if it can't dance and you can't eat it either f**k it or throw it away"
            8028finder.com

            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