July 19, 200422 yr Hi,I am writing one application for Windows PE using vc++6.0 as development platform. I am allocating memory using virtualalloc as:VirtualAlloc (pPtrToMem, //NULL dwSize, MEM_COMMIT, PAGE_READWRITE);This is running fine on Win2k, but if I try to run this on Windows PE, i am getting an error as "paging file is too small to complete this operation(ERROR_COMMITMENT_LIMIT)"can anybody tell me how to increase pagefile limit in Windows PE? or is there any other reason?Any help is welcome.Thanks.
July 19, 200422 yr Author I think 1.2, its not mentioned specifically anywhere in the documentation i have
July 19, 200422 yr This is mainly due to PE not having a pagefile, you can add a ram drive though and try to diect it there.
July 20, 200422 yr Author I want to test the total available memory in the system & thats why using VirtualAlloc, so how can a ram drive will help me in this? is there any other way to get the total available system meory & pointer yo starting location(smthing like INT15 h in DOS)
July 20, 200422 yr I want to test the total available memory in the system & thats why using VirtualAlloc, so how can a ram drive will help me in this? is there any other way to get the total available system meory & pointer yo starting location(smthing like INT15 h in DOS)Now that I understand where you are going with this, I honestly don't know I would try to hit up the MS news groups on that one.
July 22, 200422 yr hey, its wrking now..anyways thanks for helpSo what did you do to make it work since there is no pagefile in PE?
Create an account or sign in to comment