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 


Problem assigning a variable

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


Joined: 30 Jul 2002
Posts: 46
Location: Berlin/Germany

PostPosted: Tue Feb 10, 2009 4:58 pm    Post subject: Problem assigning a variable Reply with quote

hi,

got a problem loading text into a variable.
on computer 1 (athlon xp2200+, 1gb ram) this code works:

Code:
%T = @read(%F,%%Size,TEXT)


on computer 2 (intel celeron 1,6 ghz,512 mb ram) if the file to read from is larger then 500 kb %T is not assigned. on computer 1 it works even with over 5 mb files.

both systems run xp pro sp3 and have similar configurations.

Edit: Sorry, Computer 1 has servicepack 2, the only noticeable difference. /edit

any ideas?

thanx in advance.
Back to top
View user's profile Send private message
vdsalchemist
Admin Team


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

PostPosted: Wed Feb 11, 2009 6:15 pm    Post subject: Reply with quote

How do you know that %T is not holding all the data from the @read() function? Normally you would put the @read() into a loop and read small amounts of data at a time until the EOF. I personally would not try to read the whole file all at once especially if it is a large file.
_________________
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
attreus
Valued Newbie


Joined: 30 Jul 2002
Posts: 46
Location: Berlin/Germany

PostPosted: Wed Feb 11, 2009 11:14 pm    Post subject: Reply with quote

thanks dragonsphere,

%T was assigned but in the debug-window it wasn't shown because of the amount of data.

later in my code the content of %T is sent via tcp using vdsipp.dll. now i do it with a list and split it into parts of 50 lines wich are sent one by one.

nevertheless it's strange that sending the whole file did work from computer 1 but not from computer 2. seems that the available ram matters for that.

whatever, now it works fine.
Back to top
View user's profile Send private message
vdsalchemist
Admin Team


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

PostPosted: Thu Feb 12, 2009 3:16 pm    Post subject: Reply with quote

IMHO it would be the OS differences more so than the physical ram differences that could cause this.
_________________
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
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