Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question about _MEM blocks and arrays
#13
The motivation for me was the ability to do array processing on dynamicall sized blobs of data.  I wanted to use MEM blocks the same way Pascal lets you allocate arbitrary sized records by using either arrays or pointers to char/byte lists.

I want to have a record/struct  ocontaining a status byte, a size allocated byte, plus the dara.  Thinking about it I realized I can bump the data up by two bytes/words and just offset the data by that much.  That means I can just pass arrays to/from SUBs/PROCs as needed.  I was led to that by the info that you can't (shouldn't?) use arrays in UDTs.

How good is the heap tracking on REDIMed arrays?  Do I nee to worry about fragmentation right away?  Not sure how smart the back-end C compiler's memory anagementt library is.
Reply


Messages In This Thread
RE: Question about _MEM blocks and arrays - by FCS_coder - 06-06-2025, 01:10 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  _Putimage Question. Pete 11 704 01-04-2026, 09:33 PM
Last Post: Pete
  Nice simple, I hope, question Mad Axeman 4 360 12-20-2025, 09:28 PM
Last Post: SMcNeill
Question Experimenting with a "StringList" type for simpler handling of string arrays/lists Heimdall 18 1,226 12-19-2025, 12:51 PM
Last Post: Heimdall
  NewBie Question niteflyer 2 345 11-06-2025, 07:11 PM
Last Post: Petr
  A Question About _MAPTRIANGLE Magdha 2 388 11-02-2025, 11:37 AM
Last Post: Magdha

Forum Jump:


Users browsing this thread: 1 Guest(s)