Results 1 to 26 of 26

Thread: Creating a large string in a private heap

Threaded View

  1. #4

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2019
    Posts
    518

    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
  •  



Click Here to Expand Forum to Full Width