Click here to Skip to main content
15,922,309 members
Home / Discussions / C#
   

C#

 
GeneralRe: FileSystemWatcher and Threading Pin
#realJSOP19-Dec-07 23:20
professional#realJSOP19-Dec-07 23:20 
GeneralRe: FileSystemWatcher and Threading Pin
JoeRip20-Dec-07 1:40
JoeRip20-Dec-07 1:40 
GeneralRe: FileSystemWatcher and Threading Pin
#realJSOP20-Dec-07 2:37
professional#realJSOP20-Dec-07 2:37 
GeneralRe: FileSystemWatcher and Threading Pin
JoeRip20-Dec-07 1:42
JoeRip20-Dec-07 1:42 
GeneralProblems with CSV file blowing out memory Pin
LongRange.Shooter19-Dec-07 11:05
LongRange.Shooter19-Dec-07 11:05 
GeneralRe: Problems with CSV file blowing out memory Pin
Ed.Poore19-Dec-07 11:19
Ed.Poore19-Dec-07 11:19 
GeneralRe: Problems with CSV file blowing out memory Pin
LongRange.Shooter19-Dec-07 13:53
LongRange.Shooter19-Dec-07 13:53 
GeneralRe: Problems with CSV file blowing out memory Pin
Skippums19-Dec-07 12:39
Skippums19-Dec-07 12:39 
The advice that you received that the Read method is more robust is due to the following: The readline method goes until it finds a newline character. If you have a 2,000 GB file with no newline characters, then ReadLine attempts to read it ALL into memory (which is clearly going to throw an out of mem exception). The code you provided above is using Read, this is true. But you are still getting the same exception because you basically just reimplemented the same functionality, and are still trying to load a 2000 GB file into memory. The reason why Read is suposedly "safer" is because typically, you only need a portion of the file at any given time. Read into memory only that which you need, or at minimum put a limit to the file size you can handle. Hope this helps,
Sounds like somebody's got a case of the Mondays

-Jeff

Generalrandom files with different date Pin
Shani Aulakh19-Dec-07 9:09
Shani Aulakh19-Dec-07 9:09 
GeneralRe: random files with different date Pin
pmarfleet19-Dec-07 9:20
pmarfleet19-Dec-07 9:20 
GeneralRe: random files with different date Pin
Anthony Mushrow19-Dec-07 9:48
professionalAnthony Mushrow19-Dec-07 9:48 
GeneralRe: random files with different date Pin
pmarfleet19-Dec-07 9:58
pmarfleet19-Dec-07 9:58 
GeneralRe: random files with different date Pin
Shani Aulakh19-Dec-07 17:50
Shani Aulakh19-Dec-07 17:50 
GeneralRe: random files with different date Pin
Dave Kreskowiak20-Dec-07 8:57
mveDave Kreskowiak20-Dec-07 8:57 
GeneralRe: random files with different date Pin
pmarfleet20-Dec-07 9:14
pmarfleet20-Dec-07 9:14 
GeneralRe: random files with different date Pin
Dave Kreskowiak20-Dec-07 15:56
mveDave Kreskowiak20-Dec-07 15:56 
GeneralRe: random files with different date Pin
pmarfleet20-Dec-07 21:16
pmarfleet20-Dec-07 21:16 
GeneralWCF ASMX Web Service Client with HTTP Compression woes Pin
martin_hughes19-Dec-07 9:03
martin_hughes19-Dec-07 9:03 
GeneralReg:Change Text on DataGridViewLinkColumn Pin
P.T.R.K19-Dec-07 8:37
P.T.R.K19-Dec-07 8:37 
GeneralSimple File Counting Pin
ffowler19-Dec-07 8:20
ffowler19-Dec-07 8:20 
GeneralRe: Simple File Counting Pin
Giorgi Dalakishvili19-Dec-07 8:24
mentorGiorgi Dalakishvili19-Dec-07 8:24 
GeneralRe: Simple File Counting Pin
Jimmanuel19-Dec-07 8:24
Jimmanuel19-Dec-07 8:24 
GeneralRe: Simple File Counting Pin
ffowler19-Dec-07 8:26
ffowler19-Dec-07 8:26 
GeneralListView Pin
half-life19-Dec-07 7:30
half-life19-Dec-07 7:30 
GeneralRe: ListView Pin
mav.northwind19-Dec-07 9:13
mav.northwind19-Dec-07 9:13 

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.