Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Out of memory on UCase()
Message
From
28/07/2013 03:40:39
 
 
To
27/07/2013 16:43:18
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01579306
Message ID:
01579310
Views:
43
>>Was it a one-time error, or is it reproducible? Was the computer extremely low on available memory at the time?
>
>All other robots process as expected. I also stopped that specific robot and restarted it. It ended up in the same situation. So, I stopped all robots and restarted them all. The situation remains on one specific robot.
>
>The UCase() is only used at those locations:
>
>
>                ' Get the number of images
>                lnOccurence = oApp.Occurs(UCase(lcSearchFor), UCase(lcHtml))
>
>                ' Clear the collection
>                oLink.Clear()
>
>                ' Get all the images into the collection
>                For lnCounter2 = 1 To lnOccurence
>
>                    ' Get the url of the image
>                    lnLocation = oApp.At(UCase(lcSearchFor), UCase(lcHtml), lnCounter2)
>
>
>It is one of them which is causing the memory issue. My best bet is that it is the first line. lcHtml comes from a MHTML conversion. I assume there is a connectivity issue which is returning a very weird string into lcHtml which would then cause such reaction.


What are oApp.Occurs() and oApp.At() ? Are you sure it is the UCase() rather than these which is causing the problem?
IAC, it would be more efficient to create upper case versions of the string for use in those functions rather than repeating the conversion each time.
Does using ToUpper() rather than the VisualBasic namespace UCase() also cause the OOM ?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform