help me ! when insert 8388609 times wrong is happen
GoogleCodeExporter opened this issue · comments
Google Code Exporter commented
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:
Google Code Exporter commented
use windows xp and vc2008
Original comment by pw...@sina.com
on 15 Jul 2012 at 3:51
Google Code Exporter commented
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