Solved

Error : "Code segment too large"

Posted on 1997-09-03
3
178 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
Comment Utility
Edited text of question
0
 
LVL 3

Accepted Solution

by:
mirek071497 earned 50 total points
Comment Utility
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
Comment Utility
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

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

763 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