Sunday, March 21, 2010

Out Of Memory Error Using an Array in ASP

If you get this bizarre message in ASP:

Microsoft VBScript runtime error '800a0007'
Out of memory

It doesn't necessarily mean that you are out of memory. I received this error when I was creating an array using a variable. The variable was a negative value and that is why I received this error.

So if you get this error, you might want to check what value you are instantiating your array with.

For instance, if you have a statement like this:

redim testvariable(-6)

You will get an Out Of Memory Error.


0 comments: