R
Rich S
Or just loosing it?
I have a small c++ app which generates millions combinations of bitset
class objects and adds them to a STL map.
(on a side thanks to all who responded to my earlier posting about
increasing the programs speed)
Anyway, I calculate my bitset class object size to be 8 bytes and when
I run this in debug mode I can generate 19,675,656 objects before an
exception is thrown from AfxMem.cpp line 341.
What I don't understand is why I only get that many and not a whole lot
more. 19,675,656 million times 8 is 157,405,208 which is significantly
less than the 1 gig of memory I have running on this machine. I
understand that I don't get the whole gig and thanks to virtual memory
I have 2 gig available but I don't understand why I'm not even getting
close to that mark.
Do you think its truly out of memory or am I trampling on on memory I
shouldn't be. I don't think I am.
One other thing is that I have exception handlers in place but they are
not catching the exception so I'm not sure whats going on there.
Thanks for any help.
Regards
I have a small c++ app which generates millions combinations of bitset
class objects and adds them to a STL map.
(on a side thanks to all who responded to my earlier posting about
increasing the programs speed)
Anyway, I calculate my bitset class object size to be 8 bytes and when
I run this in debug mode I can generate 19,675,656 objects before an
exception is thrown from AfxMem.cpp line 341.
What I don't understand is why I only get that many and not a whole lot
more. 19,675,656 million times 8 is 157,405,208 which is significantly
less than the 1 gig of memory I have running on this machine. I
understand that I don't get the whole gig and thanks to virtual memory
I have 2 gig available but I don't understand why I'm not even getting
close to that mark.
Do you think its truly out of memory or am I trampling on on memory I
shouldn't be. I don't think I am.
One other thing is that I have exception handlers in place but they are
not catching the exception so I'm not sure whats going on there.
Thanks for any help.
Regards