Overlays and memory

Last changed 1995.03.05


TV is large. It can add 200 to 300 kb onto your application. Bear this in mind when you are writing a program using it. It is generally well behaved provided that you have made the appropriate patches to your compiler and you have used the destroy() operator as suggested.

If you need more memory, the use of overlays can be be added. This involves the recompiling of the source code, to allow for the division of files into separate libraries. If you do not have the sources, there is not much you can do... Overlaying your application will present other factors that you will have to deal with. They can slow down execution, the tracking down of bugs is more difficult and you cannot compress an overlayed program.

You can use a DOS extender. This is available in BC4.x but is not supported in BC31. You can try a third party DOS extender such as Pharlap's, but there is a fee for executables distributed with it. There are patches that can be used with the TV source to allow Pharlap's extender to be used with TV.