Solved

Error : "Code segment too large"

Posted on 1997-09-03
3
186 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

830 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