Click here to Skip to main content
15,909,437 members
Home / Discussions / C#
   

C#

 
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 
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 
Firstly, there are two things to notice here:
1) The maximum size of any object in .NET is 2GB - so any contiguous block of memory that the system tries to allocate (regardless of whether you are operating in a 32 or 64 bit environment) must be less than 2GB.
2) StringBuilder works by allocating a chunk of memory and copying your new data into it every time you Append anything. If the space is too small, then the memory buffer is doubled, and the existing content copied in before the new data is added.

So, if you are trying to read 1.5GB, then it will try to allocate memory well and truly in excess of that...Not only will this be pretty slow, but it will need a full 2GB chunk to hold your data, and there will be a lot of Very Large objects created on the way there.

Secondly, how long do you think it is going to take to display 1.5GB of rich text in a RichTextBox? And what earthly use would it be to the user to do that? Do you want to sit there and scroll through that much text looking for the bit you want?

I would very strongly suggest that you reconsider this whole approach, and look at creating something that the user can actually use without wanting to beat you over the head with his keyboard...
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 
GeneralRe: Large text file(1.5 gb) reading using Background worker Pin
Arjun Mourya23-Dec-13 4:05
Arjun Mourya23-Dec-13 4:05 
GeneralRe: Large text file(1.5 gb) reading using Background worker Pin
OriginalGriff23-Dec-13 4:12
mveOriginalGriff23-Dec-13 4:12 
QuestionRe: Large text file(1.5 gb) reading using Background worker Pin
Sampath Sridhar23-Dec-13 21:48
Sampath Sridhar23-Dec-13 21:48 

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.