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. Managed C++/CLI
  4. OOP - Error | Unhandled exception at 0x0FD2CCC8 (msvcp110d.dll)

OOP - Error | Unhandled exception at 0x0FD2CCC8 (msvcp110d.dll)

Scheduled Pinned Locked Moved Managed C++/CLI
c++ioshelp
2 Posts 2 Posters 2 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.
  • U Offline
    U Offline
    User 11606912
    wrote on last edited by
    #1

    I got below exception while reading data from .dat file using c++ code eof. Unhandled exception at 0x0FD2CCC8 (msvcp110d.dll) in ConsoleApplication1.exe: 0xC0000005: Access violation reading location 0x004DF174. My Code: teacher t1; ifstream file1; file1.open("Teacher.dat",ios::binary|ios::app); file1.seekg(0); while(!file1.eof()) { file1.read((char*)&t1,sizeof(t1)); t1.Display(); } file1.close(); Last record prints multiple time and throwing exception. Please have a look into. Thanks in advance.

    L 1 Reply Last reply
    0
    • U User 11606912

      I got below exception while reading data from .dat file using c++ code eof. Unhandled exception at 0x0FD2CCC8 (msvcp110d.dll) in ConsoleApplication1.exe: 0xC0000005: Access violation reading location 0x004DF174. My Code: teacher t1; ifstream file1; file1.open("Teacher.dat",ios::binary|ios::app); file1.seekg(0); while(!file1.eof()) { file1.read((char*)&t1,sizeof(t1)); t1.Display(); } file1.close(); Last record prints multiple time and throwing exception. Please have a look into. Thanks in advance.

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

      1. This does not look like managed code. 2. Please use <pre> tags round your code to make it more readable. 3. What is the structure of the teacher type? 4. How is the data file created? 5. What does the Display method do?

      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