forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Possible VDS5 Bug (Hang)

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
DW
Contributor
Contributor


Joined: 21 Mar 2003
Posts: 175
Location: UK

PostPosted: Sat Jan 15, 2005 9:33 am    Post subject: Possible VDS5 Bug (Hang) Reply with quote

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
View user's profile Send private message
jwfv
Valued Contributor
Valued Contributor


Joined: 19 Mar 2002
Posts: 422
Location: Beaufort, SC

PostPosted: Sat Jan 15, 2005 4:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
DW
Contributor
Contributor


Joined: 21 Mar 2003
Posts: 175
Location: UK

PostPosted: Sat Jan 15, 2005 5:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
DW
Contributor
Contributor


Joined: 21 Mar 2003
Posts: 175
Location: UK

PostPosted: Sat Jan 15, 2005 6:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
DW
Contributor
Contributor


Joined: 21 Mar 2003
Posts: 175
Location: UK

PostPosted: Sat Jan 15, 2005 6:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Sun Jan 16, 2005 12:11 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
DW
Contributor
Contributor


Joined: 21 Mar 2003
Posts: 175
Location: UK

PostPosted: Mon Jan 17, 2005 7:36 am    Post subject: Reply with quote

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
View user's profile Send private message
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Mon Jan 17, 2005 9:46 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Tue Jan 18, 2005 6:01 pm    Post subject: Reply with quote

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 Smile

_________________
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
View user's profile Send private message Send e-mail
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Tue Jan 18, 2005 6:50 pm    Post subject: Reply with quote

The "#define function" command only tells the compiler which functions will be used in the script. It's just like the (pre)defining of functions in C programs... Smile
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Tue Jan 18, 2005 6:57 pm    Post subject: Reply with quote

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 Smile


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
View user's profile Send private message Visit poster's website
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Tue Jan 18, 2005 9:19 pm    Post subject: Reply with quote

Ah ok. Sorry, didn't know exactly what he was doing. Embarassed
I've never used VDS 5.

Cheers, Mac Smile

_________________
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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum




Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group