|
-
Jul 3rd, 2012, 05:48 PM
#1
Thread Starter
Frenzied Member
What's the max size copyable with CopyMemory API call?
I know that the referenc hpvDest and hpvSource can be defined as like:
Byval hpvDest as Long
so that I can use them in conjunction with varptr to work with memory locations directly (which then allows for adding and subtracting memory locations to move stuff in memory like an array), however I doubt that even though it is using a long (a SignedInt32) that it could actually transfer &h7FFFFFFF bytes at once. In fact it crashes when I try to copy merely 100000 (&H186A0) bytes at once. What is going on. Is it really incapable of transfering large ammounts of data at once? Will I need some kind of for-next loop to transfer several megabytes of data?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|