Click here to Skip to main content
15,888,089 members
Home / Discussions / C#
   

C#

 
GeneralRe: ClickEventHandler fireing twice !! Pin
Riadh1s30-Jul-12 23:24
Riadh1s30-Jul-12 23:24 
GeneralRe: ClickEventHandler fireing twice !! Pin
Pete O'Hanlon31-Jul-12 0:03
mvePete O'Hanlon31-Jul-12 0:03 
GeneralRe: ClickEventHandler fireing twice !! Pin
Riadh1s31-Jul-12 0:24
Riadh1s31-Jul-12 0:24 
GeneralRe: ClickEventHandler fireing twice !! Pin
Pete O'Hanlon31-Jul-12 0:28
mvePete O'Hanlon31-Jul-12 0:28 
Questionhow to clear memory Pin
Ronenb30-Jul-12 21:52
Ronenb30-Jul-12 21:52 
AnswerRe: how to clear memory Pin
Eddy Vluggen30-Jul-12 23:40
professionalEddy Vluggen30-Jul-12 23:40 
GeneralRe: how to clear memory Pin
Ronenb30-Jul-12 23:45
Ronenb30-Jul-12 23:45 
AnswerRe: how to clear memory Pin
Eddy Vluggen31-Jul-12 0:10
professionalEddy Vluggen31-Jul-12 0:10 
Ronenb wrote:
the array (string []fileLinesContent) is a member of the class, not local member in func,

Then it's memory will be released once the object goes out of scope.

Ronenb wrote:
so my question is how to clean it in order free memory and read next lines in files

You can't dispose memory manually; there's a garbage-collector to do so. Very long strings are moved to the Large Object Heap, and simply stay there.

Ronenb wrote:
i'm reading the lines because i need to know when the line end and parse the element in each line

I'd recommend reading from a Stream, until you encounter that newline-character, and process it immediately. There's little need to keep all that information in memory.
Bastard Programmer from Hell Suspicious | :suss:
if you can't read my code, try converting it here[^]

GeneralRe: how to clear memory Pin
Ronenb31-Jul-12 3:02
Ronenb31-Jul-12 3:02 
AnswerRe: how to clear memory Pin
Eddy Vluggen31-Jul-12 3:12
professionalEddy Vluggen31-Jul-12 3:12 
GeneralRe: how to clear memory Pin
Pete O'Hanlon31-Jul-12 3:13
mvePete O'Hanlon31-Jul-12 3:13 
QuestionRe: how to clear memory Pin
Eddy Vluggen31-Jul-12 3:18
professionalEddy Vluggen31-Jul-12 3:18 
AnswerRe: how to clear memory Pin
Pete O'Hanlon31-Jul-12 3:27
mvePete O'Hanlon31-Jul-12 3:27 
GeneralRe: how to clear memory Pin
Eddy Vluggen31-Jul-12 5:05
professionalEddy Vluggen31-Jul-12 5:05 
GeneralRe: how to clear memory Pin
Ronenb31-Jul-12 3:21
Ronenb31-Jul-12 3:21 
AnswerRe: how to clear memory Pin
Ed Hill _5_31-Jul-12 3:20
Ed Hill _5_31-Jul-12 3:20 
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 
QuestionHelp needed in C# Pin
bbnmmn30-Jul-12 21:10
bbnmmn30-Jul-12 21:10 

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.