View previous topic :: View next topic |
Author |
Message |
DW Contributor
Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Sat Jan 15, 2005 9:33 am Post subject: Possible VDS5 Bug (Hang) |
|
|
I hav been creating an application for the last few months. This morning I wrote another block of code into my script to add two more functions.
Now I can't compile for run the script from the IDE because it just hangs.
I tried some smaller scripts which are ok, but it would seem my script is to big.
Is there any limit to a script size or its functions? |
|
Back to top |
|
|
jwfv Valued Contributor
Joined: 19 Mar 2002 Posts: 422 Location: Beaufort, SC
|
Posted: Sat Jan 15, 2005 4:56 pm Post subject: |
|
|
I have a script that is 7070 lines long and it runs fine in the IDE, if that helps.
Joe _________________ Joe Floyd |
|
Back to top |
|
|
DW Contributor
Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Sat Jan 15, 2005 5:19 pm Post subject: |
|
|
Strange.
I have 1938 lines all together in the project.
The project has 19 files to it and 35 functions.
My system specs are;
P4 2.8gig
1gig Ram
More the 90gig free HDD space
XP Pro SP2
No errors are thrown out it just hangs.
I am going to try on my old p3 400 laptop see what that thinks. |
|
Back to top |
|
|
DW Contributor
Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Sat Jan 15, 2005 6:23 pm Post subject: |
|
|
I tried it on my laptop with now luck.
I can see it start to compile but then it just stops after a few mil secs.
I have now made it so all the files are in one big long file. but it still does the same.
any ideas? |
|
Back to top |
|
|
DW Contributor
Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Sat Jan 15, 2005 6:33 pm Post subject: |
|
|
I have fixed it.
It would seem the IDE hangs when you have more the 34 functions. I removed my 35th and now it works perfectly...
Anyone care to shed any light on this? |
|
Back to top |
|
|
jules Professional Member
Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Sun Jan 16, 2005 12:11 pm Post subject: |
|
|
Take a look at the project file. I think you'll find a long line that stores the names of the functions defined in the project. My guess is that the line is getting too long and is being truncated, and when it's read back in it's causeing a situation that makes the compiler hang. I can't think of anything in the compiler itself that would limit the number of functions that can be supported.
If I'm right, the problem is because the project file is an INI file. Those who know about Windows internals will know that these are old-style configuration files that have certain limitations. The VDS IDE specifies a 512-byte buffer to read in this line. I can't imagine that a line of 34 function names could be that long. But it's possible that Windows sets a shorter limit on the length of the string that can be read in by this function. I'd be interested to know how long this string is in your project file.
If my guess is right, it looks as if I may have to change the project file to a new format for VDS 6, such as an XML file. _________________ The Tech Pro
www.tech-pro.net |
|
Back to top |
|
|
DW Contributor
Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Mon Jan 17, 2005 7:36 am Post subject: |
|
|
My functions line reads
Code: |
Functions=@ACCSEL_BUILDLIST,@ACCCRE_SAVENEW,@ACCREN_NAME,@ACCMAN_SAVE,@ACCMAN_LOAD,@ACCMAN_DATE,@ACCVEW_OPEN,@ACCVEW_SAVE,@TRANSNEW_OPEN,@TRANSNEW_PAYSAVE,@TRANSNEW_SAVE,@ACCVEW_NEWDATA,@TRANSDEL_NUM,@TRANSDEL_GETDATA,@TRANSDEL_DELENTRY,@TRANSEDIT_NUM,@TRANSEDIT_GETDATA,@TRANSEDIT_SAVE,@TRANSEDIT_LOADER,@ACCVEW_RED,@TRANSVEW_NUM,@TRANSVEW_GETDATA,@TRANSVEW_LOADER,@PRINTTRAN,@TRANSAUTO_SAVE,@TRANSAUTO_LOAD,@TRANSAUTO_DEL,@TRANSAUTO_PAYEESAVE,@TRANSAUTO_OPEN,@DOAUTO,@TRANSFILT_LOADER,@TRANSFILT_FILTER,@TRANSFILT_PRINT,@TRANSFILT_CSV,@ACCVIEW_CSV
|
The last function (@ACCVIEW_CSV) is removed in my current version because it causes me problems. But here is the version with it in. |
|
Back to top |
|
|
jules Professional Member
Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Mon Jan 17, 2005 9:46 am Post subject: |
|
|
Looks like you are hitting the 512 character line length limit. I can fix this in VDS 6, but that isn't going to be much help to you in the short term, as it will probably be several months before VDS 6 is released. You'll have to contact Commercial Research if you want to find out if they are going to release any updates to VDS 5. _________________ The Tech Pro
www.tech-pro.net |
|
Back to top |
|
|
Mac Professional Member
Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Tue Jan 18, 2005 6:01 pm Post subject: |
|
|
If the "Functions =" command can use variables, you should be
able to split that line into a variable something like this:
Code: |
%%funcs = "@ACCSEL_BUILDLIST,@ACCCRE_SAVENEW,@ACCREN_NAME,"
%%funcs = %%funcs"@ACCMAN_SAVE,@ACCMAN_LOAD," etc. etc.
then:
Functions = %%funcs
|
Just a thought.
Cheers, Mac _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
|
|
Back to top |
|
|
Skit3000 Admin Team
Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
Back to top |
|
|
jules Professional Member
Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Tue Jan 18, 2005 6:57 pm Post subject: |
|
|
Mac wrote: | If the "Functions =" command can use variables, you should be
able to split that line into a variable something like this:
Code: |
%%funcs = "@ACCSEL_BUILDLIST,@ACCCRE_SAVENEW,@ACCREN_NAME,"
%%funcs = %%funcs"@ACCMAN_SAVE,@ACCMAN_LOAD," etc. etc.
then:
Functions = %%funcs
|
Just a thought.
Cheers, Mac |
That's a line from the project file he gave. It's an INI file, so there can only be one entry "function=" and all the data has to be on that line. _________________ The Tech Pro
www.tech-pro.net |
|
Back to top |
|
|
Mac Professional Member
Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Tue Jan 18, 2005 9:19 pm Post subject: |
|
|
Ah ok. Sorry, didn't know exactly what he was doing.
I've never used VDS 5.
Cheers, Mac _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
|
|
Back to top |
|
|
|