Click here to Skip to main content
16,006,514 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to code this in C# Pin
Dave Doknjas9-May-07 14:41
Dave Doknjas9-May-07 14:41 
GeneralRe: How to code this in C# Pin
Guangli(Glen) Liu10-May-07 5:18
professionalGuangli(Glen) Liu10-May-07 5:18 
QuestionProblem with fading pictures Pin
Kasic Slobodan9-May-07 7:33
Kasic Slobodan9-May-07 7:33 
QuestionPing in wireless network Pin
Chayan (cse student)9-May-07 7:26
Chayan (cse student)9-May-07 7:26 
AnswerRe: Ping in wireless network Pin
MrEyes9-May-07 7:33
MrEyes9-May-07 7:33 
AnswerRe: Ping in wireless network Pin
Dave Kreskowiak9-May-07 7:51
mveDave Kreskowiak9-May-07 7:51 
QuestionManaging Memory and Resources [modified] Pin
MrEyes9-May-07 7:22
MrEyes9-May-07 7:22 
AnswerRe: Managing Memory and Resources Pin
Luc Pattyn9-May-07 7:43
sitebuilderLuc Pattyn9-May-07 7:43 
Hi,

some thoughts:

1.
why compress all the data at once, and then go through the trouble of chunking
it ? cant you compress part of the data (say 10 MB) and send it, then the
next part, etc. This avoids allocating and filling the big byte[] all together.

2.
to operate on part of a byte[] the API should provide a method that accepts
said array, a start index and a length, so you dont need to copy to get
the subset of the array. Most .NET classes have this.

3.
I advice against calling GC directly. The GC works fine, it collects when there
is a need to collect, and AFAIK it uses adaptive algorithms, which will
get disturbed by calling it explicitly.

Smile | :)

Luc Pattyn

[My Articles]

GeneralRe: Managing Memory and Resources Pin
MrEyes9-May-07 7:50
MrEyes9-May-07 7:50 
GeneralRe: Managing Memory and Resources Pin
Judah Gabriel Himango9-May-07 12:41
sponsorJudah Gabriel Himango9-May-07 12:41 
GeneralRe: Managing Memory and Resources Pin
MrEyes9-May-07 22:51
MrEyes9-May-07 22:51 
GeneralRe: Managing Memory and Resources Pin
Scott Dorman9-May-07 13:01
professionalScott Dorman9-May-07 13:01 
AnswerRe: Managing Memory and Resources Pin
Scott Dorman9-May-07 13:08
professionalScott Dorman9-May-07 13:08 
GeneralRe: Managing Memory and Resources Pin
MrEyes9-May-07 22:53
MrEyes9-May-07 22:53 
QuestionValue From A Cell Pin
BlitzPackage9-May-07 6:09
BlitzPackage9-May-07 6:09 
AnswerRe: Value From A Cell Pin
Nouman Bhatti9-May-07 20:24
Nouman Bhatti9-May-07 20:24 
QuestionEditing list thru the Enumerator Pin
LCI9-May-07 6:00
LCI9-May-07 6:00 
AnswerRe: Editing list thru the Enumerator Pin
Tarakeshwar Reddy9-May-07 6:19
professionalTarakeshwar Reddy9-May-07 6:19 
GeneralRe: Editing list thru the Enumerator Pin
LCI9-May-07 6:39
LCI9-May-07 6:39 
GeneralRe: Editing list thru the Enumerator Pin
Tarakeshwar Reddy9-May-07 6:54
professionalTarakeshwar Reddy9-May-07 6:54 
GeneralRe: Editing list thru the Enumerator Pin
Patrick Etc.9-May-07 10:47
Patrick Etc.9-May-07 10:47 
Questionanimated image Pin
sujithkumarsl9-May-07 5:32
sujithkumarsl9-May-07 5:32 
AnswerRe: animated image Pin
Tarakeshwar Reddy9-May-07 5:46
professionalTarakeshwar Reddy9-May-07 5:46 
GeneralRe: animated image Pin
sujithkumarsl9-May-07 19:07
sujithkumarsl9-May-07 19:07 
QuestionActiveDirectory Entries and C# Pin
ccitt9-May-07 5:25
ccitt9-May-07 5:25 

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.