Solved

Compiler Error 49

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

Author Comment

by:schey
Comment Utility
Edited text of question
0
 
LVL 2

Expert Comment

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

Expert Comment

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

Expert Comment

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

Accepted Solution

by:
vikiing earned 200 total points
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
A procedure for exporting installed hotfix details of remote computers using powershell
This video discusses moving either the default database or any database to a new volume.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

744 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now