wang1986one / sparsehash

Automatically exported from code.google.com/p/sparsehash
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

help me ! when insert 8388609 times wrong is happen #87

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.attach is the code
2.  google::dense_hash_map<string, int> dMap;
    dMap.set_empty_key("");//sparse_hash_map  要注释掉这行
    dMap.set_deleted_key("--delete--");

    int i=0;
    while(10000000 > i)
    {
        string szName= "dMap";
        char t[64];itoa(i++,t,10);
        string szKey = t;
        szKey += "a";
        dMap.insert(std::pair<string,int>(szKey,i));
    }
3.when i = 8388610 error is happen

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by pw...@sina.com on 15 Jul 2012 at 12:08

Attachments:

GoogleCodeExporter commented 9 years ago
use windows xp and vc2008 

Original comment by pw...@sina.com on 15 Jul 2012 at 3:51

GoogleCodeExporter commented 9 years ago
Is it possible you are getting some kind of stack overflow exception?

Original comment by thesamhu...@gmail.com on 3 Oct 2012 at 11:43