Click here to Skip to main content
15,888,802 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help with hash tables in C Pin
arnluci5-Jun-10 11:09
arnluci5-Jun-10 11:09 
GeneralRe: Help with hash tables in C Pin
Luc Pattyn5-Jun-10 11:31
sitebuilderLuc Pattyn5-Jun-10 11:31 
GeneralRe: Help with hash tables in C Pin
Saurabh.Garg6-Jun-10 2:16
Saurabh.Garg6-Jun-10 2:16 
GeneralRe: Help with hash tables in C [modified] Pin
arnluci21-Jun-10 10:31
arnluci21-Jun-10 10:31 
Questionwhy does it use so many memory [modified][Solved] Pin
yu-jian5-Jun-10 5:25
yu-jian5-Jun-10 5:25 
AnswerRe: why does it use so many memory Pin
Aescleal5-Jun-10 6:17
Aescleal5-Jun-10 6:17 
GeneralRe: why does it use so many memory Pin
yu-jian6-Jun-10 3:10
yu-jian6-Jun-10 3:10 
GeneralRe: why does it use so many memory Pin
Aescleal6-Jun-10 7:18
Aescleal6-Jun-10 7:18 
Cool, not surprised it eats RAM in debug - 80 bytes per tree node isn't that unreasonable.

As for release mode, have you considered looking at the source code for map to find out how big each node is? Presumably not as on one compiler I use each node contains three pointers, the data and the key. For a 32 bit machine that's 20 bytes and the allocator rounds everything up to the nearest multiple of 16 (so that 20 bytes becomes 32...) giving you ~ 320Mb.

So you're getting the correct magnitude, I wouldn't worry about it.

Ash
AnswerRe: why does it use so many memory Pin
Hristo-Bojilov5-Jun-10 6:24
Hristo-Bojilov5-Jun-10 6:24 
QuestionRe: why does it use so many memory Pin
Randor 5-Jun-10 7:02
professional Randor 5-Jun-10 7:02 
QuestionRe: why does it use so many memory Pin
David Crow7-Jun-10 4:17
David Crow7-Jun-10 4:17 
QuestionHow to Save Image from WebBrowser control Pin
voo doo125-Jun-10 5:23
voo doo125-Jun-10 5:23 
AnswerRe: How to Save Image from WebBrowser control Pin
Hristo-Bojilov5-Jun-10 6:35
Hristo-Bojilov5-Jun-10 6:35 
GeneralRe: How to Save Image from WebBrowser control Pin
voo doo125-Jun-10 7:21
voo doo125-Jun-10 7:21 
GeneralRe: How to Save Image from WebBrowser control Pin
Hristo-Bojilov5-Jun-10 8:14
Hristo-Bojilov5-Jun-10 8:14 
GeneralRe: How to Save Image from WebBrowser control Pin
voo doo125-Jun-10 16:09
voo doo125-Jun-10 16:09 
GeneralRe: How to Save Image from WebBrowser control [modified] Pin
Hristo-Bojilov6-Jun-10 2:57
Hristo-Bojilov6-Jun-10 2:57 
GeneralRe: How to Save Image from WebBrowser control Pin
voo doo126-Jun-10 4:54
voo doo126-Jun-10 4:54 
GeneralRe: How to Save Image from WebBrowser control Pin
Hristo-Bojilov6-Jun-10 5:06
Hristo-Bojilov6-Jun-10 5:06 
Question0xC0000138: Ordinal Not Found Pin
eusto5-Jun-10 1:51
eusto5-Jun-10 1:51 
AnswerRe: 0xC0000138: Ordinal Not Found Pin
Randor 5-Jun-10 6:28
professional Randor 5-Jun-10 6:28 
GeneralRe: 0xC0000138: Ordinal Not Found Pin
eusto5-Jun-10 7:36
eusto5-Jun-10 7:36 
GeneralRe: 0xC0000138: Ordinal Not Found Pin
Randor 5-Jun-10 7:49
professional Randor 5-Jun-10 7:49 
GeneralRe: 0xC0000138: Ordinal Not Found Pin
eusto5-Jun-10 8:50
eusto5-Jun-10 8:50 
GeneralRe: 0xC0000138: Ordinal Not Found Pin
Randor 5-Jun-10 9:24
professional Randor 5-Jun-10 9:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.