Solved

Error : "Code segment too large"

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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

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…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
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.

724 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