- win2k advanced server less capability then win2k pro?
- Posted by Fu Chen on August 12th, 2003
Hi!
I try to alloc a large virtual memory for a data processing algorithm.
the init code list below:
if(VirtualAlloc((LPVOID)Startaddr,(DWORD)Maxmemsiz e,MEM_RESERVE|MEM_TOP_DOWN,PAGE_READWRITE)==NULL){
printf("Error to reserve initial memory,%d",GetLastError());
exit(-1);
}
I set Startaddr = 0x20000000, and Maxmemsize = 0x50000000. It work
well only win2k professional. But when i try this program on a win2k
advanced server, there is a error in the VirtualAlloc, error code is
487, it means program visit the invalidate address. if i cut
Maxmemsize = 0x40000000, it works.
Why it work well in win2k professional but failed in win2k advanced
server?
- Posted by Dim St Thomas on August 12th, 2003
novalet@yahoo.com.cn (Fu Chen) wrote in message news:<46c1ab97.0308111906.3bbd62@posting.google.co m>...
I can think of two reasons:
1. Because the virtual memory settings on the advanced server has a
very low limit for the maximum amount of virtual memory, or the disk
on which the page file is stored has very little disk space.
2. Because the dlls loaded by your program are loaded at different memory
addresses. On your win2k professional machine you don't have anything
loaded between 0x20000000 and 0x70000000. On your advanced server
machine you have a dll loaded between 0x60000000 and 0x70000000. If
this is the case, why not set Startaddr to NULL, so the system will
find the best place to allocate the memory. The return value will
tell you the address selected (if there is enough memory available)
- Free AV for Win2K server? (Software & Applications) by walterbyrd@iname.com
- Install on Win2k Server? (Mobile Devices) by Wapiti
- Win2k, proxy server with IE (Computers & Technology) by kiwi
- How to install Win2K server on M: (Computers & Technology) by Henrik
- Re: win2k server as a router (Computers & Technology) by Billy

