User Profile

Collapse

Profile Sidebar

Collapse
tuxman
tuxman
Last Activity: Dec 3 '07, 01:42 PM
Joined: Nov 12 '07
Location: Rio de Janeiro, Brazil
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • tuxman
    replied to Memory access error with STL composed types
    in C
    I forgot to say something very important. I do not know previously, the size of array (vector) or associative array (map). They grow interactively in execution time and their size may vary in a wide range ( to few hundreeds from hundreeds of thousands and even million).
    See more | Go to post

    Leave a comment:


  • tuxman
    replied to Memory access error with STL composed types
    in C
    In fact, I've change it a bit. What I have is vector < map < int , Object * > >, but I think it does'nt matter. What I need is exaclty what I try to represent.An array with each element having an associative array. To clarify: each position of the array represent a level. In each level I've a group of cells (of a grid) that I must inspect and I use their index as a key in associative array.
    You say that bank [ i ] [ j ] does'nt...
    See more | Go to post

    Leave a comment:


  • tuxman
    started a topic Memory access error with STL composed types
    in C

    Memory access error with STL composed types

    Hi all.
    First of all let me apologize by my english.
    I've googled a lot about my problem, but I had not find anything conclusive.
    I have the following piece of code:

    Code:
    vector < map < int , char * > > bank;
    bank . reserve ( 10 );
    if ( bank [ 0 ] [ 0 ] == "a" ) //Memory access error (Access violation at address #blabla)
    which give me the error indicated in comment....
    See more | Go to post
No activity results to display
Show More
Working...