[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sv: Sv: Sv: Sv: Memory allocators






>Ehh? 1.048.576 bytes is something like 1 megabyte. I do think most any
>system will be able to allocate 1 megabyte of memory.

1024x1024 - also notice the while loop - why don't you try to compile
the thing and run it to see what happens.

>Windows can't run out of memory, though, atleast not if theres enough
>harddisk space and the size of the swap-file has not been limited. It'll
>happily shred your harddisk before reporting not enough memory.

I compiled with VC 6.0 and ran the program under NT 4.0. It returned null
after
memory was exhausted. I tried a similar program under linux a while ago
and got a similar result.  I'm not sure if you can set the page file to
unlimited. I guess you can set it to more than the free space on the hard
disk but
I don't think the system will let you.

Peter Burns