I can see this question's gone unanswered for a long time and you've probably moved on, but I had this issue today and I solved it. Here's what happened...
While the error message was the same as yours and the line number pointed to code which reallocated space for an array using redim
like your example, that was just pointing to the place where the program finally ran out of memory - not the actual cause of the extra memory use.
Fortunately I remembered that I had made another experimental change recently in some ancient DB code:
Set dbProviderCon = Server.CreateObject("ADODB.Connection")
dbProviderCon.CursorLocation = adUseClient
I had commented out that last line to see what effect it would have. It turns out the effect was running out of memory. Importantly, on the line where my code was resizing an array, it was also getting the RecordCount property of a RecordSet. Here's another discussion about the issue. I hope this helps someone.