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 


Another Error - Annoying

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
webdaddy
Contributor
Contributor


Joined: 14 Nov 2004
Posts: 151
Location: Raleigh NC

PostPosted: Sat Oct 29, 2005 6:32 pm    Post subject: Another Error - Annoying Reply with quote

I keep finding errors in VDS because im it more and more. Now today I found a doozy of an error that makes no sense to me. It started with the dreaded error 217 which appears to be a bug in delphi itself or related to permission problems. Now im getting the following.

I cant believe that these issues would not have been resolved in this version. It just doesnt make sense.



error.JPG
 Description:
 Filesize:  13.39 KB
 Viewed:  1107 Time(s)

error.JPG



_________________
K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux...
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Sat Oct 29, 2005 6:55 pm    Post subject: Reply with quote

Webdaddy,
Is that line number correct (ie... 2292769)? What is your program doing at that line? It seems unreal. How big is your program?

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
webdaddy
Contributor
Contributor


Joined: 14 Nov 2004
Posts: 151
Location: Raleigh NC

PostPosted: Sat Oct 29, 2005 11:50 pm    Post subject: Ha Reply with quote

No my program is not that large. However this is not the first time I have seen this. This is the 4th of 5th time I have run accross this. My program is only 1200 lines of code but it gives crazy errors like this.

I did change the DLL I was using from vdsipp to vdstcp and it fixed the problem. I am not sure what the heck was going on with it.

I wish I had the endurance to code something as large as that... Very Happy

_________________
K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux...
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Sun Oct 30, 2005 1:39 am    Post subject: Reply with quote

my experience tells me that the problem is with the dll in that it is not coping with the data you are feeding it

i suggest that you check all the data you are sending to the dll to make sure that it is what the author of the dll said you should use ie. the right sort of data and in the right format

also, watch out for null entries given to the dll ... it may be that it always wants valid data sent to it

serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
webdaddy
Contributor
Contributor


Joined: 14 Nov 2004
Posts: 151
Location: Raleigh NC

PostPosted: Sun Oct 30, 2005 3:12 am    Post subject: Yep Reply with quote

Well the DLL could'nt handle the amount of data being sent to it. I do check to make sure the data im sending to the DLL doesnt have any null characters. Aparently however if the server got backed up due to alot of events it appended the data being sent later or something similar giving the long line number error message. Application is working now so its all good. I am happy now that I figured out.
_________________
K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux...
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
webdaddy
Contributor
Contributor


Joined: 14 Nov 2004
Posts: 151
Location: Raleigh NC

PostPosted: Tue Nov 01, 2005 5:18 am    Post subject: Resolved - I dont know why though Reply with quote

In regard to this issue it has been resolved. By putting a wait statement in with 0.1 as the value making the script pause for a tenth of a second it seems to have fixed the error. This is not the first time I have seen this but it doesnt make much sense. Its almost like the informatoin being sent to the DLL was appended ot the information sent right before it which is not in the correct format since it was actually 2 dll messages instead of 1 which caused it to give this weird error. I can reproduce it but dont know exactly why it did it. If you see a very large error line number its worth trying I guess.
_________________
K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux...
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Tue Nov 01, 2005 5:48 am    Post subject: Reply with quote

i have had to add wait statements too ... in mycase it was to parts of a script that saved a file to a hard disk ... to allow for slow hard disk, i found that adding WAIT really did the trick

good to see you resolved the issue

serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Thu Nov 10, 2005 1:54 am    Post subject: Reply with quote

WebDaddy,
If you had to put a Wait statement in your script this is usually a indication that there is a Threading issue with the DLL. Usually you see these errors when using functions that require IO to be Asyncronous. It's very hard to get Multi-threading working with VDS since it is single threaded. Well at least I have had a hard time since I write my DLL's in pure C. The hardest part about being a VDS DLL programmer is the fact that we know nothing about the innerworkings of the VDS runtime. Building Multi-Threaded DLL's in VDS is like trying to balance an ant and an elephant on a tooth-pic using a ping-pong ball as the falcrom Laughing

Well just to let you know it has been my experience that using the wait command is only a bandaid. If the program will be used on other computers then the threads should really be looked at by the author of the DLL.

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
webdaddy
Contributor
Contributor


Joined: 14 Nov 2004
Posts: 151
Location: Raleigh NC

PostPosted: Thu Nov 10, 2005 2:40 am    Post subject: Oh wow Reply with quote

Well this is happening in VDSIPP and VDSTCP50 (I tried both and had similar results). I have it working but I too would like to see what is causing the problem. Or at least get to the root of it. I am looking at the source code in VDSIPP now to see if I can modify it for my needs.
_________________
K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux...
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help 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