Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DAY 007: _PRESERVE
#3
Curiously chosen QB64-only keyword. I was trying to point out to this:

https://qb64phoenix.com/forum/showthread...45#pid9745

It confused a couple of users. Maybe on a 64-bit system many memory block resizing requests in a short time could be handled well, but on 32-bit this was ornery. What I tended to do was read in the file twice (but it might have been even less efficient), the first time to discover how many elements to read in, then use "REDIM" for the first time and then read the file again. It had to be done that way without "_PRESERVE" and for those who didn't have M$ BASIC PDS v7.1. I was that afraid of making a program crash, and even when I started using 32-bit Freebasic because I had really bad experiences using 16-bit Power C for a year or so.
Reply


Messages In This Thread
DAY 007: _PRESERVE - by SMcNeill - 11-12-2022, 08:35 AM
RE: DAY 007: _PRESERVE - by Pete - 11-12-2022, 10:31 AM
RE: DAY 007: _PRESERVE - by mnrvovrfc - 11-12-2022, 03:13 PM
RE: DAY 007: _PRESERVE - by SMcNeill - 11-12-2022, 03:58 PM
RE: DAY 007: _PRESERVE - by Pete - 11-12-2022, 04:02 PM



Users browsing this thread: 1 Guest(s)