Click here to Skip to main content
15,892,809 members
Home / Discussions / C#
   

C#

 
AnswerRe: Delete data from sql server(C#) Pin
Rahul Rajat Singh24-Dec-13 0:00
professionalRahul Rajat Singh24-Dec-13 0:00 
QuestionDelete data from sql server Pin
Member 1048484823-Dec-13 20:02
professionalMember 1048484823-Dec-13 20:02 
AnswerRe: Delete data from sql server Pin
Richard MacCutchan23-Dec-13 22:13
mveRichard MacCutchan23-Dec-13 22:13 
QuestionDataGridView Calculated Column update when move to new row C# Pin
ahmed_one23-Dec-13 19:49
ahmed_one23-Dec-13 19:49 
AnswerRe: DataGridView Calculated Column update when move to new row C# Pin
smithjdst23-Dec-13 23:30
smithjdst23-Dec-13 23:30 
GeneralRe: DataGridView Calculated Column update when move to new row C# Pin
ahmed_one24-Dec-13 0:43
ahmed_one24-Dec-13 0:43 
GeneralRe: DataGridView Calculated Column update when move to new row C# Pin
smithjdst24-Dec-13 12:45
smithjdst24-Dec-13 12:45 
GeneralRe: DataGridView Calculated Column update when move to new row C# Pin
ahmed_one24-Dec-13 21:27
ahmed_one24-Dec-13 21:27 
QuestionMaintainScrollPositionOnPostback on UpdatePanel Pin
vkEE23-Dec-13 9:28
vkEE23-Dec-13 9:28 
Questionthe name does not exist in the current context Pin
Member 996531123-Dec-13 9:03
Member 996531123-Dec-13 9:03 
QuestionRe: the name does not exist in the current context Pin
Brisingr Aerowing23-Dec-13 10:02
professionalBrisingr Aerowing23-Dec-13 10:02 
AnswerRe: the name does not exist in the current context Pin
Member 996531123-Dec-13 10:36
Member 996531123-Dec-13 10:36 
GeneralRe: the name does not exist in the current context Pin
Brisingr Aerowing24-Dec-13 12:27
professionalBrisingr Aerowing24-Dec-13 12:27 
QuestionHow to use Oracle SQLLDR to upload Text file data through C# Pin
Daljit S. Gill22-Dec-13 23:12
Daljit S. Gill22-Dec-13 23:12 
QuestionLarge text file(1.5 gb) reading using Background worker Pin
Arjun Mourya22-Dec-13 22:56
Arjun Mourya22-Dec-13 22:56 
AnswerRe: Large text file(1.5 gb) reading using Background worker Pin
BillWoodruff23-Dec-13 0:08
professionalBillWoodruff23-Dec-13 0:08 
GeneralRe: Large text file(1.5 gb) reading using Background worker Pin
Arjun Mourya23-Dec-13 3:05
Arjun Mourya23-Dec-13 3:05 
GeneralRe: Large text file(1.5 gb) reading using Background worker Pin
Member 996531123-Dec-13 10:41
Member 996531123-Dec-13 10:41 
AnswerRe: Large text file(1.5 gb) reading using Background worker Pin
Manfred Rudolf Bihy23-Dec-13 0:49
professionalManfred Rudolf Bihy23-Dec-13 0:49 
It's sheer coincidence that the out of memory exception is thrown were you marked it in your code. You essentially read the file a line at a time and then append that into a StringBuilder instance. That means at one point there will be so much memory consumed that you'll run into that kind of exception either when reading a new line or when trying to append said line into the StringBuilder.
First question would be do you really need all those lines in memory at once. The program does not really do anything useful in that loop as it just pours it into that buffer.
Second question is how much memory does you system have and is it a 32 bit or a 64 bit OS.

Regards,
— Manfred

"I had the right to remain silent, but I didn't have the ability!"
Ron White, Comedian


GeneralRe: Large text file(1.5 gb) reading using Background worker Pin
Arjun Mourya23-Dec-13 2:57
Arjun Mourya23-Dec-13 2:57 
GeneralRe: Large text file(1.5 gb) reading using Background worker Pin
Eddy Vluggen23-Dec-13 7:25
professionalEddy Vluggen23-Dec-13 7:25 
GeneralRe: Large text file(1.5 gb) reading using Background worker Pin
Arjun Mourya24-Dec-13 0:10
Arjun Mourya24-Dec-13 0:10 
AnswerRe: Large text file(1.5 gb) reading using Background worker Pin
OriginalGriff23-Dec-13 1:06
mveOriginalGriff23-Dec-13 1:06 
GeneralRe: Large text file(1.5 gb) reading using Background worker Pin
Arjun Mourya23-Dec-13 2:50
Arjun Mourya23-Dec-13 2:50 
GeneralRe: Large text file(1.5 gb) reading using Background worker Pin
OriginalGriff23-Dec-13 3:29
mveOriginalGriff23-Dec-13 3:29 

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.