zen Posted July 19, 2004 Share Posted July 19, 2004 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. Link to comment Share on other sites More sharing options...
likuidkewl Posted July 19, 2004 Share Posted July 19, 2004 What version of PE are you using Microsoft or Bart? Link to comment Share on other sites More sharing options...
zen Posted July 19, 2004 Author Share Posted July 19, 2004 I think 1.2, its not mentioned specifically anywhere in the documentation i have Link to comment Share on other sites More sharing options...
likuidkewl Posted July 19, 2004 Share Posted July 19, 2004 This is mainly due to PE not having a pagefile, you can add a ram drive though and try to diect it there. Link to comment Share on other sites More sharing options...
zen Posted July 20, 2004 Author Share Posted July 20, 2004 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) Link to comment Share on other sites More sharing options...
likuidkewl Posted July 20, 2004 Share Posted July 20, 2004 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. Link to comment Share on other sites More sharing options...
zen Posted July 22, 2004 Author Share Posted July 22, 2004 hey, its wrking now..anyways thanks for help Link to comment Share on other sites More sharing options...
likuidkewl Posted July 22, 2004 Share Posted July 22, 2004 hey, its wrking now..anyways thanks for helpSo what did you do to make it work since there is no pagefile in PE? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now