Click here to Skip to main content
15,898,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: std::map, std::for_each and boost::bind Pin
Stephen Hewitt22-Jan-08 18:34
Stephen Hewitt22-Jan-08 18:34 
GeneralRe: std::map, std::for_each and boost::bind Pin
User 58385222-Jan-08 18:41
User 58385222-Jan-08 18:41 
GeneralRe: std::map, std::for_each and boost::bind Pin
Stephen Hewitt22-Jan-08 18:49
Stephen Hewitt22-Jan-08 18:49 
Questionproblem with memory allocation when trying to store a large table Pin
gluballs22-Jan-08 16:15
gluballs22-Jan-08 16:15 
GeneralRe: problem with memory allocation when trying to store a large table Pin
User 58385222-Jan-08 17:25
User 58385222-Jan-08 17:25 
GeneralRe: problem with memory allocation when trying to store a large table Pin
gluballs22-Jan-08 18:18
gluballs22-Jan-08 18:18 
GeneralRe: problem with memory allocation when trying to store a large table Pin
User 58385222-Jan-08 18:22
User 58385222-Jan-08 18:22 
GeneralRe: problem with memory allocation when trying to store a large table Pin
gluballs22-Jan-08 18:56
gluballs22-Jan-08 18:56 
Josh Gray wrote:
Yep because each node is allocated individually.


How is that done? For my object I create space for it by using allocator class. I assumed (or rather hoped) that multiple calls to allocate memory might result in accessing another separate block. So something like this would work:

void Dictionary::grow(){
blah = alloc.allocate(max);
blah2 = alloc.allocate(max);

// stuff
}

this however does not have the desired effect.


Josh Gray wrote:
...thats a lot of items. Have you looked into memory mapped files?


Nope. Never heard of them until now, but they do sound interesting. thanks for the hint.
GeneralRe: problem with memory allocation when trying to store a large table Pin
User 58385222-Jan-08 18:58
User 58385222-Jan-08 18:58 
GeneralRe: problem with memory allocation when trying to store a large table Pin
Stephen Hewitt22-Jan-08 19:36
Stephen Hewitt22-Jan-08 19:36 
GeneralRe: problem with memory allocation when trying to store a large table Pin
David Crow23-Jan-08 3:27
David Crow23-Jan-08 3:27 
QuestionRead particular bit in a .bin file Pin
Kennis22-Jan-08 16:02
Kennis22-Jan-08 16:02 
GeneralRe: Read particular bit in a .bin file Pin
Don Box22-Jan-08 19:06
Don Box22-Jan-08 19:06 
GeneralPointers and reference Pin
vibindia22-Jan-08 15:08
vibindia22-Jan-08 15:08 
GeneralRe: Pointers and reference Pin
Stephen Hewitt22-Jan-08 16:39
Stephen Hewitt22-Jan-08 16:39 
GeneralRe: Pointers and reference Pin
Nitheesh George22-Jan-08 19:21
Nitheesh George22-Jan-08 19:21 
GeneralATL Win32 issue Pin
act_x22-Jan-08 14:19
act_x22-Jan-08 14:19 
GeneralRe: ATL Win32 issue Pin
Naveen22-Jan-08 16:50
Naveen22-Jan-08 16:50 
Generalmethod call quiry Pin
gman200822-Jan-08 10:20
gman200822-Jan-08 10:20 
GeneralRe: method call quiry Pin
Nitheesh George22-Jan-08 21:27
Nitheesh George22-Jan-08 21:27 
GeneralRe: method call quiry Pin
CPallini22-Jan-08 21:38
mveCPallini22-Jan-08 21:38 
GeneralRe: method call quiry Pin
gman200823-Jan-08 1:45
gman200823-Jan-08 1:45 
GeneralSetting Folder Permission During Installation Pin
KMerker22-Jan-08 8:11
KMerker22-Jan-08 8:11 
General"an unnamed file contained an unexpected object" Pin
Dave Calkins22-Jan-08 7:35
Dave Calkins22-Jan-08 7:35 
GeneralRe: "an unnamed file contained an unexpected object" Pin
Dave Calkins22-Jan-08 7:43
Dave Calkins22-Jan-08 7:43 

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.