Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 01-18-2006, 19:06
Kerlingen
 
Posts: n/a
@MarkusO:
Quote from MSDN:
Quote:
The function fails if you attempt to commit a page that has not been reserved. The resulting error code is ERROR_INVALID_ADDRESS.
@Snatch:
I could allocate any memory region I tried. The mistake here was that MarkusO tried to commit a page which was not reserved. I never heard about that "process address space" rule, like you call it, before.
Reply With Quote
  #2  
Old 01-19-2006, 01:23
Human
 
Posts: n/a
MEM_RESERVE The function reserves a range of the process's virtual address space without allocating any actual physical storage in memory or in the paging file on disk. Other memory allocation functions, such as malloc and LocalAlloc, cannot use a reserved range of memory until it is released. You can commit reserved memory pages in subsequent calls to the VirtualAllocEx function.

seems we have to do 2 virtualalloc's
one with reserve one with commit at least i understand it that way
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unpack OneWay.dll problem,Import REConstructor v1.6 Final fails. winndy General Discussion 3 01-07-2006 10:22
MapConv fails to apply IDA .MAP labels or comments 5Alive General Discussion 5 05-25-2005 19:55
Allocating memory at a specific location redbull General Discussion 5 04-18-2005 19:37


All times are GMT +8. The time now is 17:21.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( Since 1998 )