| View previous topic :: View next topic |
| Author |
Message |
attreus Valued Newbie

Joined: 30 Jul 2002 Posts: 46 Location: Berlin/Germany
|
Posted: Tue Feb 10, 2009 4:58 pm Post subject: Problem assigning a variable |
|
|
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 |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Wed Feb 11, 2009 6:15 pm Post subject: |
|
|
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 |
|
 |
attreus Valued Newbie

Joined: 30 Jul 2002 Posts: 46 Location: Berlin/Germany
|
Posted: Wed Feb 11, 2009 11:14 pm Post subject: |
|
|
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 |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Thu Feb 12, 2009 3:16 pm Post subject: |
|
|
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 |
|
 |
|