Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Out of memory on loStringBuilder.ToString()
Message
De
06/06/2011 16:51:03
 
 
À
06/06/2011 16:49:49
Information générale
Forum:
ASP.NET
Catégorie:
Problèmes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01513090
Message ID:
01513215
Vues:
30
>I have no idea how big your string is, but I can see how a large enough string might eat up memory. Perhaps you can have an overloaded CreateFileEncoding() method that takes a StringBuilder instead of a string. That way, you don't utilize .ToString() until you're in the process of actually writing it out to a file
>
>
>loStreamWriter.Write(tcStringBuilder.ToString())
>
>
>Would that work ok for you?

This is a great idea. I will work on it and let you know.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform