?
Solved

Compiler Error 49

Posted on 1998-11-10
5
Medium Priority
?
206 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 400 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
We are witnesses that everyone is saying that our children shouldn't "play" with a technology because it is dangerous. This article is going to prove that they are wrong.
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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

764 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