Click here to Skip to main content
15,889,810 members
Home / Discussions / C#
   

C#

 
QuestionKilling a byte array? Pin
Justin Time24-Jul-08 4:06
Justin Time24-Jul-08 4:06 
AnswerRe: Killing a byte array? Pin
Luc Pattyn24-Jul-08 4:33
sitebuilderLuc Pattyn24-Jul-08 4:33 
GeneralRe: Killing a byte array? Pin
Justin Time24-Jul-08 4:48
Justin Time24-Jul-08 4:48 
GeneralRe: Killing a byte array? Pin
Luc Pattyn24-Jul-08 5:02
sitebuilderLuc Pattyn24-Jul-08 5:02 
GeneralRe: Killing a byte array? Pin
Justin Time24-Jul-08 6:07
Justin Time24-Jul-08 6:07 
GeneralRe: Killing a byte array? Pin
Luc Pattyn24-Jul-08 7:27
sitebuilderLuc Pattyn24-Jul-08 7:27 
GeneralRe: Killing a byte array? Pin
Justin Time24-Jul-08 8:14
Justin Time24-Jul-08 8:14 
GeneralRe: Killing a byte array? Pin
Luc Pattyn24-Jul-08 9:06
sitebuilderLuc Pattyn24-Jul-08 9:06 
In the mean time I have read a dozen articles on the subject.
This is my conclusion:

1) objects smaller than 80KB will pose no problems if handled correctly.
2) objects larger than 80KB are allocated in LOH (Large Object Heap) which is
susceptible to fragmentation since there is no compaction for it; there are some
guidelines to reduce the likelyhood (i.e. postpone the unfortunate situation), see e.g.

Nish's article[^].

My advice is avoid unnecessary large objects (i.e. >80KB), so don't turn an image
into a byte[] or a string that exceeds that threshold.

BTW In software hope and pray is not a viable strategy.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Voting for dummies? No thanks. Dead | X|


GeneralRe: Killing a byte array? [modified] Pin
DaveyM6924-Jul-08 23:07
professionalDaveyM6924-Jul-08 23:07 
GeneralRe: Killing a byte array? Pin
Luc Pattyn25-Jul-08 3:44
sitebuilderLuc Pattyn25-Jul-08 3:44 
GeneralRe: Killing a byte array? Pin
Luc Pattyn24-Jul-08 9:28
sitebuilderLuc Pattyn24-Jul-08 9:28 
AnswerRe: Killing a byte array? Pin
leppie24-Jul-08 4:33
leppie24-Jul-08 4:33 
GeneralRe: Killing a byte array? Pin
Justin Time24-Jul-08 4:43
Justin Time24-Jul-08 4:43 
QuestionDisable Browser Pin
Agweet24-Jul-08 3:35
Agweet24-Jul-08 3:35 
AnswerRe: Disable Browser Pin
Pete O'Hanlon24-Jul-08 4:00
mvePete O'Hanlon24-Jul-08 4:00 
GeneralRe: Disable Browser Pin
Agweet24-Jul-08 20:22
Agweet24-Jul-08 20:22 
AnswerRe: Disable Browser Pin
PIEBALDconsult24-Jul-08 6:23
mvePIEBALDconsult24-Jul-08 6:23 
Questionip address Pin
AlexPizzano24-Jul-08 2:16
AlexPizzano24-Jul-08 2:16 
AnswerRe: ip address Pin
teejayem24-Jul-08 2:27
teejayem24-Jul-08 2:27 
AnswerRe: ip address Pin
stancrm24-Jul-08 2:52
stancrm24-Jul-08 2:52 
AnswerRe: ip address Pin
Simon P Stevens24-Jul-08 3:00
Simon P Stevens24-Jul-08 3:00 
AnswerRe: ip address Pin
nelsonpaixao24-Jul-08 13:25
nelsonpaixao24-Jul-08 13:25 
GeneralRe: ip address Pin
Abdul Sami X24-Jul-08 19:57
Abdul Sami X24-Jul-08 19:57 
AnswerRe: ip address Pin
Mogaambo25-Jul-08 1:34
Mogaambo25-Jul-08 1:34 
QuestionReflection in a Windows Service & WCF Pin
Bernard Laplace24-Jul-08 1:58
Bernard Laplace24-Jul-08 1:58 

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.