> hi i am developing visual studio c++ application. basically i would like to
> give memory usage options for the runtime for running my programe? i know how
> to do it in jave but is dont know how to give for a c++ program?
>
> do any one of you know how to set these options?

Signature
Greetings
Jochen
My blog about Win32 and .NET
http://blog.kalmbachnet.de/
i am under impression that when you run a c/c++ program the runtime will
allocate some maximum memory for the program beyond which it cannot exceed.
Is this right?
vinod
> Hi ve!
>
[quoted text clipped - 7 lines]
> I C/C++ you have fully control over memory, so you can do what you want.
> There is no garbage-collector or some other "hidden" stuff.
Jochen Kalmbach [MVP] - 28 Oct 2005 19:35 GMT
Hi ve!
> i am under impression that when you run a c/c++ program the runtime will
> allocate some maximum memory for the program beyond which it cannot exceed.
> Is this right?
Normally the memory is only allocated if you are requesting it (for
example by calling "new" or "malloc").
But in general there is a maximum memory which could be allocated. But
this is not specific to C7C++; this also true for all other languages...
If the OS resources are exhausted, then you cannot allocate more memory...

Signature
Greetings
Jochen
My blog about Win32 and .NET
http://blog.kalmbachnet.de/
Arnaud Debaene - 29 Oct 2005 09:06 GMT
> i am under impression that when you run a c/c++ program the runtime
> will allocate some maximum memory for the program beyond which it
> cannot exceed.
> Is this right?
No. There are obviously a few limitations, but they are mainlyWindo
> vinod
>
[quoted text clipped - 18 lines]
>> My blog about Win32 and .NET
>> http://blog.kalmbachnet.de/
Arnaud Debaene - 29 Oct 2005 09:09 GMT
> i am under impression that when you run a c/c++ program the runtime
> will allocate some maximum memory for the program beyond which it
> cannot exceed.
> Is this right?
No, The limitations you will get are because of Windows, not because of C++
runtime. The main limitations are :
- You've got 2GB to hold all your data : code, stacks, heaps, etc..
- A thread stack has a maximum fixed size (most often, 1 MB).
Arnaud
MVP - VC