473,320 Members | 2,041 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Memeory 3G problems ?

jht
I Have a workstation with AMD64 CPU’s and 6 Giga Byte RAM ,OS Windows XP 64.
I have 2 problems with it:
1.I want my .NET application(VS.NET 2003 VC++7.0) to use more then 3 GByte of
memory,how to do? VirtualAlloc can do it?
2.I use VS .NET 2003,it can not use more than 3GByte of memory,so I want to
install VS2005 to do it ,but VS2005 can not installed ,"MSXML 6.0" install
failed.

Can anybody tell me how solve this 2 issues?

--------
Thanks
jht

email: to*****@yahoo.com
Feb 28 '06 #1
20 1720
I Have a workstation with AMD64 CPU’s and 6 Giga Byte RAM ,OS Windows XP 64.
I have 2 problems with it:
1.I want my .NET application(VS.NET 2003 VC++7.0) to use more then 3 GByte of
memory,how to do? VirtualAlloc can do it?
2.I use VS .NET 2003,it can not use more than 3GByte of memory,so I want to
install VS2005 to do it ,but VS2005 can not installed ,"MSXML 6.0" install
failed.


you should probably use VirtualAllocEx. it takes a size_t size parameter,
which means you can specify > 2^32-1 bytes.

you can download msxml 6 here:
http://www.microsoft.com/downloads/d...displaylang=en

but it think you can also install it when you install the VS2005
prerequisites.

--

Kind regards,
Bruno.
br**********************@hotmail.com
Remove only "_nos_pam"

Feb 28 '06 #2

"jht" <u19185@uwe> wrote in message news:5c88c36932886@uwe...
|I Have a workstation with AMD64 CPU's and 6 Giga Byte RAM ,OS Windows XP
64.
| I have 2 problems with it:
| 1.I want my .NET application(VS.NET 2003 VC++7.0) to use more then 3 GByte
of
| memory,how to do? VirtualAlloc can do it?

You need a 64 bit compiler to generate 64 bit code. 32 bit compilers
(VS2002, VS2003) are not capable to use > 3GB RAM. One option is to use the
64bit C++ compiler and linker included with latest platform SDK.

| 2.I use VS .NET 2003,it can not use more than 3GByte of memory,so I want
to
| install VS2005 to do it ,but VS2005 can not installed ,"MSXML 6.0" install
| failed.
|
1. Install the V2.0 Framework
2. Install VS2005 RTM professional (not a beta!) and you need to install the
optional 64 bit C++ compiler.

Willy.
Feb 28 '06 #3
what is the 64bit C++ compiler and latest platform SDK.
what is VS2005 RTM professional

jht

--
Message posted via http://www.dotnetmonster.com
Mar 1 '06 #4
The VS2005 RTM professional is the release of Visual Studio .NET Professional

RTM = Release to manufacturing
jht wrote:
what is the 64bit C++ compiler and latest platform SDK.
what is VS2005 RTM professional

jht


--
Message posted via http://www.dotnetmonster.com
Mar 1 '06 #5
The latest Platform SDK is found here:

http://www.microsoft.com/downloads/d...DisplayLang=en

RTM is Release To Manufacturing, but what I really meant was a Retail
version not a Beta.

Willy.
"jht via DotNetMonster.com" <u19185@uwe> wrote in message
news:5c967c1135767@uwe...
| what is the 64bit C++ compiler and latest platform SDK.
| what is VS2005 RTM professional
|
| jht
|
| --
| Message posted via http://www.dotnetmonster.com
Mar 1 '06 #6
hi willy
I have installed vs2005,but it can't use >3G memory ,,i have to install
latest Platform SDK ? and if i installed latest Platform SDK ,how to do
next ,still use VirtualAlloc () fuction?

thank you very much!

jht
Willy Denoyette [MVP] wrote:
The latest Platform SDK is found here:

http://www.microsoft.com/downloads/d...DisplayLang=en

RTM is Release To Manufacturing, but what I really meant was a Retail
version not a Beta.

Willy.

| what is the 64bit C++ compiler and latest platform SDK.
| what is VS2005 RTM professional
|
| jht


--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...et-vc/200603/1
Mar 2 '06 #7

"jht via DotNetMonster.com" <u19185@uwe> wrote in message
news:5ca4a2dfa8a32@uwe...
| hi willy
| I have installed vs2005,but it can't use >3G memory

What exactly are you trying and what problems do you have?
I'm using vs2005 on X64 and I can allocate > 3GB of memory, so it should
work for you too, as long as you target X64 (see your projects setting).

Willy.


Mar 3 '06 #8
i have a stucture like this:
typedef struct d_type{
int f1;
int f2;
....
long memo;
} stdu;

long s=sizeof(stdu);
s=200bytes

now I have 20000000 data(type stdu) ,i want to allocate memory like this:

stdu *p;
p=(stdu *)VirtualAlloc(0,20000000*sizeof(stdu),MEM_COMMIT, PAGE_READWRITE);
it can not allocate >3G memory on winxp x64 with vs2005;

how to do ?

thanks

jht


Willy Denoyette [MVP] wrote:
| hi willy
| I have installed vs2005,but it can't use >3G memory

What exactly are you trying and what problems do you have?
I'm using vs2005 on X64 and I can allocate > 3GB of memory, so it should
work for you too, as long as you target X64 (see your projects setting).

Willy.


--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...et-vc/200603/1
Mar 6 '06 #9
jht via DotNetMonster.com wrote:
it can not allocate >3G memory on winxp x64 with vs2005;

how to do ?


You've never replied to Willy's point - make sure your Project Type (not
just the computer you're running on) is x64. You're probably building a 32
bit executable, which still won't be able to allocate more than 3GB even if
you run it on a 64 bit machine.

-cd
Mar 6 '06 #10
what is the Project Type x64,i created it with MFC in vs2005,is it X64
Project ?

Carl Daniel [VC++ MVP] wrote:
it can not allocate >3G memory on winxp x64 with vs2005;

how to do ?


You've never replied to Willy's point - make sure your Project Type (not
just the computer you're running on) is x64. You're probably building a 32
bit executable, which still won't be able to allocate more than 3GB even if
you run it on a 64 bit machine.

-cd


--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...et-vc/200603/1
Mar 6 '06 #11
is it possible to allocate >3G RAM with MFC? with vs2005 on winxp x64 os?if
it is possible ,how to do?
thanks
jht

Carl Daniel [VC++ MVP] wrote:
it can not allocate >3G memory on winxp x64 with vs2005;

how to do ?


You've never replied to Willy's point - make sure your Project Type (not
just the computer you're running on) is x64. You're probably building a 32
bit executable, which still won't be able to allocate more than 3GB even if
you run it on a 64 bit machine.

-cd


--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...et-vc/200603/1
Mar 6 '06 #12
Make sure you did select the "X64 compilers and tools" during VS2005 set-up
(on a 32 or 64 bit system doesn't matter).
Then, and only then, will you be able to create 64 bit C++ projects.

Willy.
"jht via DotNetMonster.com" <u19185@uwe> wrote in message
news:5cd34b8cc882e@uwe...
|i have a stucture like this:
| typedef struct d_type{
| int f1;
| int f2;
| ....
| long memo;
| } stdu;
|
| long s=sizeof(stdu);
| s=200bytes
|
| now I have 20000000 data(type stdu) ,i want to allocate memory like this:
|
| stdu *p;
| p=(stdu *)VirtualAlloc(0,20000000*sizeof(stdu),MEM_COMMIT, PAGE_READWRITE);
|
|
| it can not allocate >3G memory on winxp x64 with vs2005;
|
| how to do ?
|
| thanks
|
| jht
|
|
|
|
| Willy Denoyette [MVP] wrote:
| >| hi willy
| >| I have installed vs2005,but it can't use >3G memory
| >
| >What exactly are you trying and what problems do you have?
| >I'm using vs2005 on X64 and I can allocate > 3GB of memory, so it should
| >work for you too, as long as you target X64 (see your projects setting).
| >
| >Willy.
|
| --
| Message posted via DotNetMonster.com
| http://www.dotnetmonster.com/Uwe/For...et-vc/200603/1
Mar 6 '06 #13
what is the "X64 compilers and tools"? i have installed Microsoft Platform
SDK for Windows Server 2003 SP1,is it possible? would you mind give me some
link to do it?

Willy Denoyette [MVP] wrote:
Make sure you did select the "X64 compilers and tools" during VS2005 set-up
(on a 32 or 64 bit system doesn't matter).
Then, and only then, will you be able to create 64 bit C++ projects.

Willy.

|i have a stucture like this:
| typedef struct d_type{
[quoted text clipped - 28 lines]
| >
| >Willy.


--
Message posted via http://www.dotnetmonster.com
Mar 7 '06 #14
hi Willy,
I have a workstation with AMD64 CPU's and 6 Giga Byte RAM ,OS Windows XP 64 ,
installed Microsoft Platform SDK for Windows Server 2003 SP1.

My problem is:
1.I want to use MFC in vs2005 to develope my application,is it possible to
use >3G RAM?how to use >3G RAM with VirtualAlloc(),can u help me ,or give me
some detail link(step by step).
2.there is no option in the vs2005 for AMD64 Platform in "configation
manager" ,why?
3.would you mind to give me some link to allocate memory in vs2005?

thank u very much!
-------
jht

Willy Denoyette [MVP] wrote:
Make sure you did select the "X64 compilers and tools" during VS2005 set-up
(on a 32 or 64 bit system doesn't matter).
Then, and only then, will you be able to create 64 bit C++ projects.

Willy.

|i have a stucture like this:
| typedef struct d_type{
[quoted text clipped - 28 lines]
| >
| >Willy.


--
Message posted via http://www.dotnetmonster.com
Mar 7 '06 #15

"jht via DotNetMonster.com" <u19185@uwe> skrev i meddelandet
news:5cdfd1d113255@uwe...
hi Willy,
I have a workstation with AMD64 CPU's and 6 Giga Byte RAM ,OS
Windows XP 64 ,
installed Microsoft Platform SDK for Windows Server 2003 SP1.

My problem is:
1.I want to use MFC in vs2005 to develope my application,is it
possible to
use >3G RAM?how to use >3G RAM with VirtualAlloc(),can u help me ,or
give me
some detail link(step by step).
2.there is no option in the vs2005 for AMD64 Platform in
"configation
manager" ,why?
It is called x64 (but AMD64 in early Betas). It is available only if
you have the Professional Edition, or better, and specifically choose
to install it. Default is 32 bit tools only.

3.would you mind to give me some link to allocate memory in vs2005?


If you run in 64 bit mode, you have *lots* of space available.

If you run a 32 bit application under 64 bit Windows, and the app is
linked with /LARGEADDRESSAWARE, it can access up to (almost) 4GB.
Bo Persson
Mar 7 '06 #16
"specifically choose to install it. Default is 32 bit tools only." what is
meaning ? how to do to choose 64 tools?
Bo Persson wrote:
hi Willy,
I have a workstation with AMD64 CPU's and 6 Giga Byte RAM ,OS

[quoted text clipped - 10 lines]
"configation
manager" ,why?


It is called x64 (but AMD64 in early Betas). It is available only if
you have the Professional Edition, or better, and specifically choose
to install it. Default is 32 bit tools only.
3.would you mind to give me some link to allocate memory in vs2005?


If you run in 64 bit mode, you have *lots* of space available.

If you run a 32 bit application under 64 bit Windows, and the app is
linked with /LARGEADDRESSAWARE, it can access up to (almost) 4GB.

Bo Persson


--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...et-vc/200603/1
Mar 8 '06 #17
hi Bo Persson
If you run a 32 bit application under 64 bit Windows, and the app is
linked with /LARGEADDRESSAWARE, it can access up to (almost) 4GB.
but I only use 2GB,why?can u tell me some detail,how to do ?

thank u very much!

-----
jht


Bo Persson wrote:
hi Willy,
I have a workstation with AMD64 CPU's and 6 Giga Byte RAM ,OS

[quoted text clipped - 10 lines]
"configation
manager" ,why?


It is called x64 (but AMD64 in early Betas). It is available only if
you have the Professional Edition, or better, and specifically choose
to install it. Default is 32 bit tools only.
3.would you mind to give me some link to allocate memory in vs2005?


If you run in 64 bit mode, you have *lots* of space available.

If you run a 32 bit application under 64 bit Windows, and the app is
linked with /LARGEADDRESSAWARE, it can access up to (almost) 4GB.

Bo Persson


--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...et-vc/200603/1
Mar 9 '06 #18
Can anyone help me?

thanks

jht

jht wrote:
hi Bo Persson
If you run a 32 bit application under 64 bit Windows, and the app is
linked with /LARGEADDRESSAWARE, it can access up to (almost) 4GB.
but I only use 2GB,why?can u tell me some detail,how to do ?

thank u very much!

-----
jht
hi Willy,
I have a workstation with AMD64 CPU's and 6 Giga Byte RAM ,OS

[quoted text clipped - 14 lines]

Bo Persson


--
Message posted via http://www.dotnetmonster.com
Mar 10 '06 #19
Jeez man, you said from the very beginning that you owned VS2005, install it
and select the 64 tools option.

Willy.

"jht via DotNetMonster.com" <u19185@uwe> wrote in message
news:5cdf91787b10a@uwe...
| what is the "X64 compilers and tools"? i have installed Microsoft Platform
| SDK for Windows Server 2003 SP1,is it possible? would you mind give me
some
| link to do it?
|
| Willy Denoyette [MVP] wrote:
| >Make sure you did select the "X64 compilers and tools" during VS2005
set-up
| >(on a 32 or 64 bit system doesn't matter).
| >Then, and only then, will you be able to create 64 bit C++ projects.
| >
| >Willy.
| >
| >|i have a stucture like this:
| >| typedef struct d_type{
| >[quoted text clipped - 28 lines]
| >| >
| >| >Willy.
|
| --
| Message posted via http://www.dotnetmonster.com
Mar 10 '06 #20
hi Willy and everyone,

My problem have solved,thank u very much!

cheers!

best regards!

jht

Willy Denoyette [MVP] wrote:
Make sure you did select the "X64 compilers and tools" during VS2005 set-up
(on a 32 or 64 bit system doesn't matter).
Then, and only then, will you be able to create 64 bit C++ projects.

Willy.

|i have a stucture like this:
| typedef struct d_type{
[quoted text clipped - 28 lines]
| >
| >Willy.


--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...et-vc/200603/1
Mar 13 '06 #21

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jerome Lefebvre | last post by:
Hello, Hope this will interest a few. I been working with a friend on the problems given out during the "International Collegiate Programming Contest" (ICPC) http://icpc.baylor.edu/icpc/ ....
14
by: Jim Hubbard | last post by:
Are you up to speed on the difficulties in using the 1.1 .Net framework? Not if you are unaware of the 1,596 issues listed at KBAlertz (http://www.kbalertz.com/technology_3.aspx). If you are...
1
by: 3f | last post by:
Hello; We have made a web application that people can download from our web site and installed on: Windows XP Windows 2000 Professional Windows 2003 Server Windows 2000 Server
5
by: Corky | last post by:
This works: db2 SELECT DISTINCT PROBLEM_OBJECTS.PROBLEM_ID FROM PROBLEM_OBJECTS INNER JOIN PROBLEMS ON PROBLEM_OBJECTS.PROBLEM_ID = PROBLEMS.PROBLEM_ID WHERE INTEGER(DAYS(CURRENT DATE) -...
2
by: Ellen Graves | last post by:
I am having a lot of problems with DB2 8.3.1 on RH Linux AS2.1. Installing and running stored procedures is problematic. Stored procedures I have used for years on V7 on WinNT are now failing...
10
by: BBFrost | last post by:
We just recently moved one of our major c# apps from VS Net 2002 to VS Net 2003. At first things were looking ok, now problems are starting to appear. So far ... (1) ...
17
by: Sharon | last post by:
I Have a PC with dual XEON CPU’s and 4 Giga Byte RAM win Windows XP Pro. I have 2 problems with it: (1) Windows is showing only 3.25 Giga byte on the System Properties ? General tab. While the...
2
by: Brian | last post by:
NOTE ALSO POSTED IN microsoft.public.dotnet.framework.aspnet.buildingcontrols I have solved most of my Server Control Collection property issues. I wrote an HTML page that describes all of the...
0
by: Sergistm | last post by:
Hello World, :D I have a problem that it is making me crazy, I hope you can help me. I'm trying to execute a .exe file with the Procces.Start, and there is no problem when the file is on my...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.