Board index » delphi » Data Segment to Large
shisc...@MAIL.ATCON.COM (Steve Hiscock)
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
|
shisc...@MAIL.ATCON.COM (Steve Hiscock)
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Data Segment to Large
Okay. I am working on a rather large program right now, and I am
having some problems with running it. It seems that the "Data Segment is to Large" according to the compiler. I am aware of what the problem is, but what I am unsure of is how to fix it. I know that it is possible to make bigger programs in pascal, but how is the question? Please help me! This is very urgent. Steve... Reply here or via email at... shisc...@atcon.com EMail: shisc...@atcon.com |
Sundial Servic
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Data Segment to LargeQuoteIn article <4c034n$...@thor.atcon.com> shisc...@MAIL.ATCON.COM (Steve Hiscock) writes: and reference them through pointers. In Delphi you can simply create a class, create an instance of that class, and dispense with all those silly "^s." /mr/ |
ChinaJ
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Data Segment to LargeQuoteYou wrote: your big structures, allocate the memory on the heap using *new* and free it using *dispose* when you are done. Get Rubenking's book if you need to handle big data structures. |
JANI JRVIN
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Data Segment to LargeSH>Okay. I am working on a rather large program right now, and I am SH>having some problems with running it. It seems that the "Data Segment SH>is to Large" according to the compiler. I am aware of what the SH>problem is, but what I am unsure of is how to fix it. I know that it SH>is possible to make bigger programs in pascal, but how is the SH>question? Please help me! This is very urgent. This is probably in the FAQ list, but still, you need to make some of Regards, Jani Jarvinen --- |
R Dut
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Data Segment to LargeQuote> >is possible to make bigger programs in pascal, but how is the With pointers you can actually use your physical memory, going way beyond |
Mikkel Breil
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Data Segment to LargeHello Steve! SH> @RFC.Gate: Fri, 29 Dec 95 19:56:13 SH> From: shisc...@MAIL.ATCON.COM (Steve Hiscock) SH> Okay. I am working on a rather large program right now, and I am If you use an array like Quote>VAR Quote>TYPE Quote> FooBar[1]:='A'; Quote> FooBar[1]^:='A'; Also before using any of the chars in such an array you have to claim it from Quote> NEW(FooBar[no]); took from the HEAP this the DISPOSE command instead of NEW. Now you can access (in TP) the leftover area below 640KB not used by other For example you could work with 2 x 64000bytes for a small paintprogram If at any time memory is too limited you can create a file of disk and put The key you see, is to use dynamic variables instead of variables known at Also using allocated memory via NEW and DISPOSE is better when dealing with Regards |