Avatar billede falslev Nybegynder
10. marts 2005 - 09:12 Der er 3 kommentarer

Fejl: Out of string space

Microsoft VBScript runtime error '800a000e'
Out of string space

Den fejl får jeg på min side når der er mange brugere på.
På trods af dette er der masser af ubrugt ram men fejlen kommer aligevel.

Er ret på ...... derfor de mange point.
Avatar billede a1a1 Novice
10. marts 2005 - 11:28 #1
gemmer du meget i sessions? (database connections mv.)
Avatar billede a1a1 Novice
10. marts 2005 - 11:31 #2
http://aspfaq.com/show.asp?id=2389

800A000E

Microsoft VBScript runtime (0x800A000E) 
Out of string space

This can happen when you are trying to concatenate a large string together, and exceed the server's capacity to hold your string in memory. To work around this, if you are writing to the screen, use multiple response.write() statements instead of holding onto all of that string in the buffer and response.writing it in one line. It you are writing to a text file, use multiple fs.writeline commands instead of one. You can demonstrate this error by running the following code (WARNING: do not run on a production system!!!):

<%
    server.scriptTimeout = 300000
    for i = 1 to 10
        str = str & string(32000000,".")
    next
%>

Let it fly, and watch Task Manager until the error times out. In Windows 2000, memory usage for inetinfo.exe/dllhost.exe should go through the roof (in .NET Server, watch w3wp.exe).

This error can also happen with arrays. If you are creating very large arrays because you don't know how many elements will populate them, consider breaking the work across iterations of re-using a smaller array. Also, as soon as you are done working with the array, empty it out by using the following command:

<%
    Erase ArrayName
%>

This will free up the memory used by the array.

Persits.Upload.1 (0x800A000E) 
Fatal error: can't find next separator.

This is a bug in IE 5.0 and/or ASPUpload 2.0. It is fixed by ASPUpload version 2.1.0.1, or 3.0. See PS01071762 for more details.
Avatar billede falslev Nybegynder
10. marts 2005 - 18:33 #3
Nej jeg bruger et cache obejct istedet for.
Her smider jeg hele HTML koden ned for mine sider og giver dem så en levetid på 5 min.
Derved skal jeg kun lave DB opslag hver 5 min.

F.eks.
Dim StrHTML

StrHTML=StrHTML & "<TABLE>"
StrHTML=StrHTML & "<TR>"
osv. osv. osv.

Her får jeg så nogle gange Out of string space
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester