Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
problem with writefile when Heap is more than 1 megabyte
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
jklosak  
View profile  
 More options Dec 9 2010, 10:53 pm
Newsgroups: microsoft.public.masm
From: jklosak <jklo...@gmail.com>
Date: Thu, 9 Dec 2010 19:53:54 -0800 (PST)
Local: Thurs, Dec 9 2010 10:53 pm
Subject: problem with writefile when Heap is more than 1 megabyte
masm32 on Win7 machine
trying to save a large Heap to file
invoke HeapCreate,NULL,2000000,0
mov Heap1,eax   ;handle to the heap
invoke HeapAlloc,Heap1,HEAP_ZERO_MEMORY,2000000
 invoke FileAccess,0,0,0,ADDR CPTChargeFile,GRGW,SHARE,NORMAL
 invoke SetFilePointer,tmphandle,NULL,NULL,FILE_BEGIN
invoke WriteFile,tmphandle,lpHeap,M2,ADDR byteswritten,NULL
        invoke GetLastError

getlasterror returns
1784 The supplied user buffer is not valid for the requested
operation. ERROR_INVALID_USER_BUFFER
works fine if the Heap is under 1 meg. any ideas appreciated.
thanks
john klosak


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »