Hi I have just registered on the forum. I have been programming with Turbo Pascal 7.0 for a few years now, and I have been trying to solve the "data segment too large" error. I am using units in order to be able to type more codes for the program I am making. The TP help section says to use the function "New" to define a variable and pointer. My goal is to make a RPG game and therefore would require typing a lot of codes. However the compiler cannot compile more than 64K. Does anyone know of a way to program with Turbo Pascal and not have a limit on how large your program has to be?
I am replying to my own post to say that I just found the answer to my problem. The data segment too large error indicates that i am declaring too many variables in my program and units included. So I deleted the declared variables from the units i made and typed "uses rpg1" in all units, which contains the variables i needed for all the other units. i am using units to host procedures which use the same variables declared in the main program. so by adding "uses rpg1" to every unit i use the varibales declared in rpg1 in all the units and those variables are the same as in the main program.
I don't know if you can picture that but it's hard to explain.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks