Solved

Error : "Code segment too large"

Posted on 1997-09-03
3
180 Views
Last Modified: 2012-05-04
Hello

At compiling the program Delphi gives the message : "Code segment too large". I have tried to transfer a part of the program to a separate unit, but it is necessary to send command from this module to a component of the
main window. Help me please, how can I compile the program ?

Thanks.
0
Comment
Question by:Alexey090397
  • 2
3 Comments
 

Author Comment

by:Alexey090397
ID: 1343564
Edited text of question
0
 
LVL 3

Accepted Solution

by:
mirek071497 earned 50 total points
ID: 1343565
1.You must devide you'r largest units.
2.If You need call component from new unit then call. You can if you put unit in uses clausule.

  example
     
Unit2;
     ......
    implementation
    ...
   uses
      Unit1;

...
  procedure  anyproc;
  begin
     Firm1.Edit1.Text := 'tralala';
  end;
  ...
end.
   

0
 

Author Comment

by:Alexey090397
ID: 1343566
Thank you for the excellent answer.
I have made all as you have written. My program works now and I have received access to the objects on the main form, from the separate unit.
Your answer has helped me very much.

Aleksey
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

813 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