We need to convert a large Pascal system to Delphi 5. It uses heap structures with thousands of entries extensively that it creates on the fly and then releases. What is the most elegant way to do this in Delphi 5. Do we need to release each instance of each New or come up with some more global approach?
Is there a way to mark and release like the original Turbo Pascal? Do people often create operations like mark and release or do they individually get rid of each instance created by new? The numbers of entries in the system being addressed make this seem unelegant.
What is meant by doing our own caching? What do we do to create these caches? We think we can prevent events from writing into marked memory by not using these types of structures for anyone but the heap writing/reading process. Are we wrong?
The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Creating an auto free TStringList
The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list.
In such cases, you have to…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210 (2 * 3 * 5 * 7) or 2310 (2 * 3 * 5 * 7 * 11).
The larger templa…