Out of string space

R

Ronald

Hi there!

Sometimes I am getting the errormessage "Out of string space ". The error
occurs on this code:

sBrf = sBrf & sBodyTmp & "\par \page \par "

When this occurs len(sBrf)<100.000 and len(sBodyTmp)<10.000.

Also there is about 1,5gb fysical memory free.

I am using Windows 2000 IIS5.

I tried isolating the proces in IIS to make sure no other scripts are
involved, but it doesn't help.

Does anyone has any ideas of what is wrong here?

Regards,

Ronald
 
B

Bob Barrows [MVP]

Gérard Leclercq said:
I believe string are ltd to 64 KB. Not Sure

That is definitely wrong. A string " ... can be up to approximately 2
billion characters in length." (from the vbscript Usre's guide in the online
documentation).

To the OP, we need a little more context to figure out what is going on. Can
you post a small repro script to allow us to see the problem occurring? We
don't want to see ALL of your code, just enough to allow us to reproduce
your symptoms.

Bob Barrows
 
B

Bob Barrows [MVP]

Ronald said:
Hi there!

Sometimes I am getting the errormessage "Out of string space ". The
error occurs on this code:

sBrf = sBrf & sBodyTmp & "\par \page \par "

When this occurs len(sBrf)<100.000 and len(sBodyTmp)<10.000.

Also there is about 1,5gb fysical memory free.

I am using Windows 2000 IIS5.

I tried isolating the proces in IIS to make sure no other scripts are
involved, but it doesn't help.

Does anyone has any ideas of what is wrong here?

Regards,

Ronald


Here are some google results that may help:
http://msdn.microsoft.com/library/d...en-us/script56/html/vserroutofstringspace.asp
http://www.google.com/search?source...,GGLD:2003-36,GGLD:en&q="Out+of+string+space"
 
P

Patrice

IMO should work from the fragment of code you gave here. Don't you have an
array or something in some other part ?

As a side note you could likely optimize by editing "in place" using a big
pre allocated string or by using a temporary file...

Patrice
 
P

Patrice

And you are not using other strings in the other parts of your script ?
Posting the minimal amount of code that exhibits the problem may help.


Patrice
--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,141
Messages
2,570,817
Members
47,362
Latest member
ChandaWagn

Latest Threads

Top