View previous topic :: View next topic |
Author |
Message |
Rubes_sw Valued Contributor
Joined: 11 Jun 2001 Posts: 625 Location: Northern Ireland
|
Posted: Tue Jul 15, 2003 6:06 pm Post subject: VDS5 CAn't Handle BIG dsc files |
|
|
I am creating a program and so far it's 14,645Kb (I know it sounds a lot and it is)
But VDS5 Just hangs and can't open it, I had to create it in wordpad
DOes anyone know the file limit size of a DSC, EXE, DSU etc ?
Nathan |
|
Back to top |
|
|
Rubes_sw Valued Contributor
Joined: 11 Jun 2001 Posts: 625 Location: Northern Ireland
|
Posted: Tue Jul 15, 2003 7:50 pm Post subject: |
|
|
Doh !
I have cut my file down to 1.84MB instead of 14.56MB But guess what VDS5 can open it eventually but then when you run it is hangs VDS5
Lines of code in 1.84Mb dsc file [176133]
Does anyone know of VDS5's limits ?
Nathan
ps. Machine Specs:
1.2GHz Processor
512Mb Ram
60Gb Hard Disk |
|
Back to top |
|
|
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Tue Jul 15, 2003 7:57 pm Post subject: |
|
|
Don't know the limits yet. Have you tried compiling it? Does the executable
crash when you try to run it?
Also, just curious, what are you making that's over 100000 lines of code? _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Tue Jul 15, 2003 8:00 pm Post subject: |
|
|
I don't know the limits myself, but have a suggestion for a work around.
Have you tried breaking some of the code down into INCLUDE files?
I've been doing this just to help me keep a better handle on code. I
take whole branches that are huge and making them into their own
.dsc file, and then including them. You can still GOTO or GOSUB like
normal doing this way.
I'm not sure it will solve this problem, but it might be worth a try.
-Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
Back to top |
|
|
Rubes_sw Valued Contributor
Joined: 11 Jun 2001 Posts: 625 Location: Northern Ireland
|
Posted: Tue Jul 15, 2003 8:04 pm Post subject: |
|
|
I am still using an unregistered version of vds5 (i don;t want to but it until I am happy that some of the bugs have been sorted out)
I can't explain why there is over 170,000 lines of code, lets just say it will be a really, really useful tool for VDS programmers if i can get it to work.
Nathan |
|
Back to top |
|
|
Rubes_sw Valued Contributor
Joined: 11 Jun 2001 Posts: 625 Location: Northern Ireland
|
Posted: Tue Jul 15, 2003 8:09 pm Post subject: |
|
|
Just as a test, I have cut down the file to 534Kb (49066 lines of Code)
And guess what, vds5 crashs again...
Nathan
* I am not trying to rag down on VDS5 i think its a great improvement on VDS4. But I think their maybe a problem with the VDS5 Compiler !
* VDS5 Will load and edit the 534Kb File, but will not run (test compile it) it.
OK, Just tried 11616 lines of code 130Kb And It eventually Runs, Very Slowley, and then causes a EaccessViolation ?
Nathan |
|
Back to top |
|
|
CodeScript Moderator Team
Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Wed Jul 16, 2003 2:45 am Post subject: |
|
|
I think the editor in IDE has the same limit as a multiline edit box and windows notepad. Not remebering exactly though : the file size limit for windows notepad is somewhere arounf 64kb . I think this has been much improved over in Notepad Xp. I think this advantage extends to some other apps as well - interfacing that way. BTW on what OS paltform R U ?
VDS 4 doesnt have this limit ? I dont know
But in a richtext edit control its higher ?
If an editor has to handle larger Mbs and Gbs of data it has to write to file/buffer and only open the part visible to U - something like that - hex/disk/"progammers" editors do that.
Then the file size is only limited by available memory both RAM /swap file. But with such a editor multiple undo is difficult as it directly writes to disk. and if multi undo provided by a different strategy the app will poorly respond to you - cutting pasting etc as it has to refresh the entire buffer.
My little knowldege whatever though i dont know the exact limit of VDS pad - may be near 64 kb?
I also wonder if the linker and compiler in VDS5 (unlike 4 ) has been designed to handle this big a data ?
If I am wrong correct me _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
Back to top |
|
|
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Thu Jul 17, 2003 3:03 pm Post subject: |
|
|
I think Commercial Research has used a third-party syntaxmemo component which was
designed to be able to handle more than 64 kB of data. I also think to remember that the
ability to handle very large scripts was one of the new features in VDS 3.
I think back then they said they dropped the command-line compiler support as it
would be no longer needed as the IDE could handle all scripts directly, without any
more need for an external editor. |
|
Back to top |
|
|
jules Professional Member
Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Fri Jul 18, 2003 2:18 pm Post subject: |
|
|
The VDS IDE uses TSyntaxMemo, a Delphi component that is no longer available. It's the same editor as was used in VDS 3 and 4. _________________ The Tech Pro
www.tech-pro.net |
|
Back to top |
|
|
|