Yahya,
| But I still didn't understand how can I make use of the whole 4GB of
memory.
As David, Sean, and I have stated you cannot per se until .NET 2.0 64-Bit
edition.
Depending on which server you are running, you can enable .NET 1.1 to use
3GB if your server OS supports it. For details start with "/3GB switch" at:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/scalenetchapt17.asp
| I am using such a large amount or memory since this application is copying
| large mail items between public folders on a machine which is also running
| exchange 2003 that is taking alone the minimum of 1GB.
I would review the algorithm I was using to copy the data to see if there
was one that did not require such high memory requirements. Such as reading
& writing 1M chunks at a time.
Hope this helps
Jay
|I am using such a large amount or memory since this application is copying
| large mail items between public folders on a machine which is also running
| exchange 2003 that is taking alone the minimum of 1GB.
|
| But I still didn't understand how can I make use of the whole 4GB of
memory.
|
| Thank you,
| Yahya
|
| message | > | > > Dear Sirs,
| > >
| > > I have developed a VB .Net windows application, but unfortunately
| when
| > > I
| > > this application tries to use more than 2GB memory it fails although
| there
| > > is available 4GB of memory on the machine. How may I allocate more
| virtual
| > > memory to be used by the application or extend this limit?
| > >
| >
| > The amount of RAM on the machine is irrelevant. Your application uses
| > virtual memory which is paged from disk to RAM by the OS.
| >
| > On 32-bit windows you have a 4gig virtual address space which divided
into
| > 2gigs for user-mode code, and 2gigs for kernel-mode code. So your
| > application (which runs in user-mode) can only access the bottom 2gigs
of
| > the address space.
| >
| > On 64bit windows, native 64-bit apps (which you can't write with .NET
1.1)
| > have a very large address space. 32-bit apps running on 64bit windows in
| the
| > Windows On Windows64 environment still have a 4gig address space, but
| since
| > all no kernel-mode code can run in 32-bit mode, you can use the whole
4gig
| > address space.
| >
| > But seriously, why are you using so much memory?
| >
| > David
| >
| >
|
|