?
Solved

Error : "Code segment too large"

Posted on 1997-09-03
3
Medium Priority
?
195 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
[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
  • 2
3 Comments
 

Author Comment

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

Accepted Solution

by:
mirek071497 earned 100 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses
Course of the Month11 days, 22 hours left to enroll

752 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