Solved

Compiler Error 49

Posted on 1998-11-10
5
204 Views
Last Modified: 2008-02-01
When I try to compile one large DPMI program, I got a Compiler Error 49 (Data segment too large). But all Data I have for the data segment have only about 40kb. Is there any solution for this problem?
0
Comment
Question by:schey
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 

Author Comment

by:schey
ID: 1216053
Edited text of question
0
 
LVL 2

Expert Comment

by:omsec
ID: 1216054
what are your compiler settings ? Do you use any directives such as $?- or $?+ etc. ?
0
 
LVL 1

Expert Comment

by:FuzzyLogic
ID: 1216055
Try to move some data into run-time allocated pointers.
0
 
LVL 2

Expert Comment

by:omsec
ID: 1216056
I didn't know, this problem happens in Protected Mode too
0
 
LVL 3

Accepted Solution

by:
vikiing earned 200 total points
ID: 1216057
The maximum data-size Pascal can handle must lie withing one segment, this is, 64 Kb (actually 65520 bytes due to some bytes of overhead).

If compiler is notifying you the excess, you surely has something that's going beyond 64 K, keep in mind that a single mistake in Var section (for example: a "0" added at an array declaration multiplies its size by 10). You always can allocate dynamic structures (using "New" procedure at run-time), which are defined at another segment, thus enabling you to go over the one-segment limit.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to Use TTouchKeyboard inherit 1 1,514
entry point in my program 14 499
Display image from a link 4 523
Newbie Thread Programming 1 197
When using a search centre, I'm going to show you how to configure Sharepoint's search to only return results from the current site collection. Very useful when using Office 365 with multiple site collections.
Invest in your employees with these five simple steps to improve employee engagement and retention.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question