Closed Thread
Results 1 to 2 of 2

Thread: Turbo Pascal 7.0 Data segment too large

  1. #1
    Sebas is offline Newbie
    Join Date
    Oct 2009
    Posts
    2
    Rep Power
    0

    Turbo Pascal 7.0 Data segment too large

    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?

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Sebas is offline Newbie
    Join Date
    Oct 2009
    Posts
    2
    Rep Power
    0

    Re: Turbo Pascal 7.0 Data segment too large

    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.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Need help finding a large data set
    By HapHazard in forum General Programming
    Replies: 4
    Last Post: 04-19-2011, 02:02 PM
  2. Turbo Pascal: (Triple) Yahtzee
    By WingedPanther in forum Classes and Code Snippets
    Replies: 3
    Last Post: 03-05-2010, 02:55 PM
  3. Turbo Pascal 4.0 - Stack Overflow
    By TheKingfish in forum Pascal and Delphi
    Replies: 7
    Last Post: 02-16-2010, 02:29 PM
  4. Turbo Pascal: Master Mind
    By WingedPanther in forum Classes and Code Snippets
    Replies: 0
    Last Post: 12-05-2009, 07:03 AM
  5. Turbo pascal compiler
    By ragingfear in forum General Programming
    Replies: 2
    Last Post: 11-21-2007, 01:17 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts