|
-
Oct 10th, 2024, 09:17 AM
#4
Thread Starter
Fanatic Member
Re: Creating a large string in a private heap
Interestingly I allocate 40 megs of memory, set the length to 40 million. Len(strString) returns 20meg, lenb(strString) returns 40 meg. So far so good.
But if I try to touch any memory after the first 2 bytes (1 unicode char) which was the size of the thing orionally it crashes
EDIT - Forgot the terminator 2 bytes
Last edited by vbwins; Oct 10th, 2024 at 09:29 AM.
Tags for this Thread
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
|