Solved

Compiler Error 49

Posted on 1998-11-10
5
205 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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Microsoft is moving in-place eDiscovery & hold from ECP to EOP console under Content Search in Search and Investigation Options.  In this post, I will be showing you how to export emails to a PST file using the Content Search Options.
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

691 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