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. ATL / WTL / STL
  4. std::map issue

std::map issue

Scheduled Pinned Locked Moved ATL / WTL / STL
helpquestion
5 Posts 3 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.
  • F Offline
    F Offline
    f2
    wrote on last edited by
    #1

    class tagtree { ... public: std::map<CString,tagtree*> mapControllee; }; ** working code ** tagtree *tt; tagtree *ttController; tt = AddNode(...); ttController = tt; tt = AddNode(...); ttController->mapControllee[strName] = tt; <- assert and crash at compare down to _tcmp with pointer lpsz = 0xcdcdcdcd("") anyone help? i use map quite regularly.. from, -= aLbert =-

    V S 2 Replies Last reply
    0
    • F f2

      class tagtree { ... public: std::map<CString,tagtree*> mapControllee; }; ** working code ** tagtree *tt; tagtree *ttController; tt = AddNode(...); ttController = tt; tt = AddNode(...); ttController->mapControllee[strName] = tt; <- assert and crash at compare down to _tcmp with pointer lpsz = 0xcdcdcdcd("") anyone help? i use map quite regularly.. from, -= aLbert =-

      V Offline
      V Offline
      valikac
      wrote on last edited by
      #2

      stl better a["a"] = p result? Kuphryn

      F 1 Reply Last reply
      0
      • V valikac

        stl better a["a"] = p result? Kuphryn

        F Offline
        F Offline
        f2
        wrote on last edited by
        #3

        bug in xtree from, -= aLbert =-

        1 Reply Last reply
        0
        • F f2

          class tagtree { ... public: std::map<CString,tagtree*> mapControllee; }; ** working code ** tagtree *tt; tagtree *ttController; tt = AddNode(...); ttController = tt; tt = AddNode(...); ttController->mapControllee[strName] = tt; <- assert and crash at compare down to _tcmp with pointer lpsz = 0xcdcdcdcd("") anyone help? i use map quite regularly.. from, -= aLbert =-

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

          You haven't posted enough code for the problem to be visible. What does AddNode do? Clearly we need this as it determines the value of tt and ttController. One thing I'll say - The problem is almost certainly with AddNode. Steve

          F 1 Reply Last reply
          0
          • S Stephen Hewitt

            You haven't posted enough code for the problem to be visible. What does AddNode do? Clearly we need this as it determines the value of tt and ttController. One thing I'll say - The problem is almost certainly with AddNode. Steve

            F Offline
            F Offline
            f2
            wrote on last edited by
            #5

            the AddNode is nothing more than just "new tagtree with tagtree's attributes". during the config process between tagtree could be linked by using tagtree's map. my post there is to get attention from ppl who met this problem b4. if u never met it, i have to be frank it is quite unlucky day then u will see it. it is a bug in stl library. i fix it by patching my stl xtree file used by map. the bug never go away after service pack 5 for vc6. simply google dinkumware. they are the one who write stl lib in vc6.0 from, -= aLbert =-

            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