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. Mobile Development
  3. Mobile
  4. Loading - Serialization

Loading - Serialization

Scheduled Pinned Locked Moved Mobile
jsonhelpquestion
4 Posts 2 Posters 5 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.
  • M Offline
    M Offline
    Mariz
    wrote on last edited by
    #1

    I´m having a problem when a try to load: (*pArchive) >> m_nId; Do you have to do some kind of cast...?

    J 1 Reply Last reply
    0
    • M Mariz

      I´m having a problem when a try to load: (*pArchive) >> m_nId; Do you have to do some kind of cast...?

      J Offline
      J Offline
      Joao Paulo Figueira
      wrote on last edited by
      #2

      What kind of problem (compile-time or run-time)? Normally you use the CArchive object as a reference, not as a pointer, but I cannot see why this should cause any problem.

      M 1 Reply Last reply
      0
      • J Joao Paulo Figueira

        What kind of problem (compile-time or run-time)? Normally you use the CArchive object as a reference, not as a pointer, but I cannot see why this should cause any problem.

        M Offline
        M Offline
        Mariz
        wrote on last edited by
        #3

        It´s run-time error... "An attempt was made to access an unnamed file past its end"

        J 1 Reply Last reply
        0
        • M Mariz

          It´s run-time error... "An attempt was made to access an unnamed file past its end"

          J Offline
          J Offline
          Joao Paulo Figueira
          wrote on last edited by
          #4

          The only reason I can think of is that you are trying to read more than you wrote to the file. I always try to make the serialization code symmetrical, i.e. for each insert I write an extract. This has worked seamlessly for me.

          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