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

C#

 
GeneralRe: how to print a web page in c# without using Javascript Pin
marcoreg4-Aug-09 4:54
marcoreg4-Aug-09 4:54 
Question64bit and OutOfMemory Pin
Super Lloyd2-Aug-09 20:32
Super Lloyd2-Aug-09 20:32 
AnswerRe: 64bit and OutOfMemory Pin
Christian Graus2-Aug-09 20:40
protectorChristian Graus2-Aug-09 20:40 
GeneralRe: 64bit and OutOfMemory Pin
Super Lloyd2-Aug-09 23:38
Super Lloyd2-Aug-09 23:38 
AnswerRe: 64bit and OutOfMemory Pin
Vimalsoft(Pty) Ltd2-Aug-09 21:39
professionalVimalsoft(Pty) Ltd2-Aug-09 21:39 
AnswerRe: 64bit and OutOfMemory Pin
Luc Pattyn3-Aug-09 0:10
sitebuilderLuc Pattyn3-Aug-09 0:10 
GeneralRe: 64bit and OutOfMemory Pin
Super Lloyd3-Aug-09 0:28
Super Lloyd3-Aug-09 0:28 
GeneralRe: 64bit and OutOfMemory Pin
Luc Pattyn3-Aug-09 0:55
sitebuilderLuc Pattyn3-Aug-09 0:55 
Hi,

I agree problem 3 is the most likely.

I happen to be researching fragmentation and OOM; it used to be very simple and predictable; I had a 20-line test app that demonstrates it in a matter of milliseconds, but something has changed recently, and now I get it sometimes, and somehow .NET works around it on some occasions. I'll have to spend more time before I can draw any conclusions.

From earlier fragmentation observations, I would avoid all unnecessary objects larger than 80KB, that includes huge strings (always bad!), and large collections (see http://www.perceler.com/articles1.php?art=capacity1[^]) hence also your DataTable. I'd rather use an enumeration that doesn't require all the rows to be present in memory at once

I'm not a DB specialist, however probably you should use an ExecuteScalar to get a count when relevant, and a DataReader might be better to get one row at a time.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

GeneralRe: 64bit and OutOfMemory Pin
Super Lloyd3-Aug-09 1:09
Super Lloyd3-Aug-09 1:09 
AnswerRe: 64bit and OutOfMemory Pin
Alan Balkany3-Aug-09 4:47
Alan Balkany3-Aug-09 4:47 
QuestionHow to detect if a folder is open Pin
rick05562-Aug-09 20:25
rick05562-Aug-09 20:25 
AnswerRe: How to detect if a folder is open Pin
Christian Graus2-Aug-09 20:37
protectorChristian Graus2-Aug-09 20:37 
Answer[Message Deleted] Pin
Hristo-Bojilov2-Aug-09 21:31
Hristo-Bojilov2-Aug-09 21:31 
GeneralRe: How to detect if a folder is open Pin
rick05562-Aug-09 21:45
rick05562-Aug-09 21:45 
GeneralRe: How to detect if a folder is open Pin
Christian Graus2-Aug-09 21:58
protectorChristian Graus2-Aug-09 21:58 
GeneralRe: How to detect if a folder is open Pin
Dave Kreskowiak3-Aug-09 3:49
mveDave Kreskowiak3-Aug-09 3:49 
GeneralRe: How to detect if a folder is open Pin
Hristo-Bojilov3-Aug-09 7:37
Hristo-Bojilov3-Aug-09 7:37 
QuestionLinq Pin
Sayed Sajid2-Aug-09 20:21
Sayed Sajid2-Aug-09 20:21 
AnswerRe: Linq Pin
Christian Graus2-Aug-09 20:35
protectorChristian Graus2-Aug-09 20:35 
GeneralRe: Linq Pin
Sayed Sajid2-Aug-09 20:42
Sayed Sajid2-Aug-09 20:42 
GeneralRe: Linq Pin
riced2-Aug-09 23:18
riced2-Aug-09 23:18 
AnswerRe: Linq Pin
N a v a n e e t h2-Aug-09 20:42
N a v a n e e t h2-Aug-09 20:42 
QuestionFinding Nested ( ) pairs Pin
Adam R Harris2-Aug-09 20:07
Adam R Harris2-Aug-09 20:07 
AnswerRe: Finding Nested ( ) pairs Pin
OriginalGriff2-Aug-09 21:24
mveOriginalGriff2-Aug-09 21:24 
GeneralRe: Finding Nested ( ) pairs Pin
Adam R Harris3-Aug-09 9:05
Adam R Harris3-Aug-09 9:05 

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.