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. Access Violation in Unicode Debug.

Access Violation in Unicode Debug.

Scheduled Pinned Locked Moved C / C++ / MFC
helpdebugging
3 Posts 2 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.
  • H Offline
    H Offline
    Harshapaulp
    wrote on last edited by
    #1

    The following problem occurs in unicode debug config: A socket connection handler class CMclSocket has a derived class CHttpProtoFile. A function Send() of the base class is called in the derived class in the OnConnect handler. Untill this function is called in the derived class the member variables of the base class r acessible. Once this function is called, accessing the member variables inside this function in the base class throws '0xC0000005: Access Violation.' error while running the application. This application works fine in debug config. Harshapaul Pinto

    S 1 Reply Last reply
    0
    • H Harshapaulp

      The following problem occurs in unicode debug config: A socket connection handler class CMclSocket has a derived class CHttpProtoFile. A function Send() of the base class is called in the derived class in the OnConnect handler. Untill this function is called in the derived class the member variables of the base class r acessible. Once this function is called, accessing the member variables inside this function in the base class throws '0xC0000005: Access Violation.' error while running the application. This application works fine in debug config. Harshapaul Pinto

      S Offline
      S Offline
      Stephen Hewitt
      wrote on last edited by
      #2

      Try compiling it without the /GZ compiler switch in debug build. Steve

      H 1 Reply Last reply
      0
      • S Stephen Hewitt

        Try compiling it without the /GZ compiler switch in debug build. Steve

        H Offline
        H Offline
        Harshapaulp
        wrote on last edited by
        #3

        It Still doesnt work.

        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