Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Clarification using _MEM
#5
(01-23-2024, 07:21 PM)SMcNeill Wrote: With arrays.   Point to an element in an array and the SIZE changes depending upon that element.  Seems odd to me, but that's just the way it's always been.  /shrug   See my demo above.  Wink
I suppose I was picturing the `_OFFSET` and `SIZE` in the existing `_MEM` being changed (since the comment says "changes"). Your code example doesn't change the original `_MEM` instance, it's creating new ones for each `_Mem()` call that you will then have to then `_MemFree`.
Reply


Messages In This Thread
Clarification using _MEM - by TerryRitchie - 01-23-2024, 06:52 PM
RE: Clarification using _MEM - by SpriggsySpriggs - 01-23-2024, 07:03 PM
RE: Clarification using _MEM - by DSMan195276 - 01-23-2024, 07:12 PM
RE: Clarification using _MEM - by SMcNeill - 01-23-2024, 07:21 PM
RE: Clarification using _MEM - by DSMan195276 - 01-23-2024, 07:41 PM
RE: Clarification using _MEM - by TerryRitchie - 01-23-2024, 07:45 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Loading from file into _MEM? and LEN a TYPE... Unseen Machine 9 976 08-03-2025, 02:55 AM
Last Post: SMcNeill
  error on function returning _mem Herve 5 698 07-05-2025, 08:06 PM
Last Post: hsiangch_ong
  Question about _MEM blocks and arrays FCS_coder 19 2,709 06-15-2025, 10:09 AM
Last Post: TempodiBasic
  _mem Jack 13 2,006 01-09-2025, 01:50 AM
Last Post: hsiangch_ong

Forum Jump:


Users browsing this thread: 1 Guest(s)