Click here to Skip to main content
15,886,362 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to clear memory Pin
Ronenb31-Jul-12 3:32
Ronenb31-Jul-12 3:32 
GeneralRe: how to clear memory Pin
Ed Hill _5_31-Jul-12 3:40
Ed Hill _5_31-Jul-12 3:40 
GeneralRe: how to clear memory Pin
Dave Kreskowiak31-Jul-12 4:29
mveDave Kreskowiak31-Jul-12 4:29 
GeneralRe: how to clear memory Pin
Ronenb1-Aug-12 0:08
Ronenb1-Aug-12 0:08 
AnswerRe: how to clear memory Pin
BobJanova31-Jul-12 0:31
BobJanova31-Jul-12 0:31 
AnswerRe: how to clear memory Pin
Ennis Ray Lynch, Jr.31-Jul-12 4:52
Ennis Ray Lynch, Jr.31-Jul-12 4:52 
AnswerRe: how to clear memory Pin
PIEBALDconsult31-Jul-12 6:09
mvePIEBALDconsult31-Jul-12 6:09 
AnswerRe: how to clear memory Pin
RobCroll31-Jul-12 14:31
RobCroll31-Jul-12 14:31 
You already know how many lines are in the file using the pageSize argument. Interesting as it suggests the file has already been read at least once. There may be memory issues there.
Can't tell what object types fileLinesContent or fileLines are but Arrays, ArrayLists and List<t> enable you to set the collections capacity. Setting the capacity, when initializing will potentially save memory.
Why not make fileLines the same type as fileLinesContent and then you can drop the ToArray() method.

As already mentioned, 700M isn't a big deal, there must be another part to this problem unless you are working on an old PC.
"You get that on the big jobs."

QuestionHelp needed in C# Pin
bbnmmn30-Jul-12 21:10
bbnmmn30-Jul-12 21:10 
AnswerRe: Help needed in C# Pin
Wayne Gaylard30-Jul-12 21:23
professionalWayne Gaylard30-Jul-12 21:23 
QuestionRe: Help needed in C# Pin
Ed Hill _5_30-Jul-12 22:57
Ed Hill _5_30-Jul-12 22:57 
GeneralResponse.Write doenst work correctly ...? Pin
jojoba201130-Jul-12 20:08
jojoba201130-Jul-12 20:08 
GeneralRe: Response.Write doenst work correctly ...? Pin
Bernhard Hiller30-Jul-12 20:47
Bernhard Hiller30-Jul-12 20:47 
AnswerRe: Response.Write doenst work correctly ...? Pin
jojoba201130-Jul-12 21:31
jojoba201130-Jul-12 21:31 
GeneralRe: Response.Write doenst work correctly ...? Pin
Dave Kreskowiak31-Jul-12 2:29
mveDave Kreskowiak31-Jul-12 2:29 
QuestionHai sir Pin
Mars selva30-Jul-12 20:00
Mars selva30-Jul-12 20:00 
AnswerRe: Hai sir Pin
Abhinav S30-Jul-12 20:08
Abhinav S30-Jul-12 20:08 
QuestionQuick Data Layer Design Question Pin
Kevin Marois30-Jul-12 8:54
professionalKevin Marois30-Jul-12 8:54 
AnswerRe: Quick Data Layer Design Question Pin
Pete O'Hanlon30-Jul-12 10:06
mvePete O'Hanlon30-Jul-12 10:06 
GeneralRe: Quick Data Layer Design Question Pin
Kevin Marois30-Jul-12 10:25
professionalKevin Marois30-Jul-12 10:25 
AnswerRe: Quick Data Layer Design Question Pin
Eddy Vluggen30-Jul-12 11:32
professionalEddy Vluggen30-Jul-12 11:32 
AnswerRe: Quick Data Layer Design Question Pin
BobJanova31-Jul-12 0:27
BobJanova31-Jul-12 0:27 
AnswerRe: Quick Data Layer Design Question Pin
PIEBALDconsult31-Jul-12 6:33
mvePIEBALDconsult31-Jul-12 6:33 
QuestionCircular list as vector, lock needed? Pin
George Nistor30-Jul-12 5:45
George Nistor30-Jul-12 5:45 
AnswerRe: Circular list as vector, lock needed? Pin
OriginalGriff30-Jul-12 6:07
mveOriginalGriff30-Jul-12 6:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.