fix a function that gives System.OutOfMemoryException: on vb.net

Job ID: 38227261

Budget: €8 – €30 EUR

I need someone with experience in vb.net to fix me a function that gives me System.OutOfMemoryException. I can't figure out the error, because if running manually works without a problem, it doesn't automatically
Related categories: Visual Basic .NET SQL VB.NET API