Click here to Skip to main content
15,867,453 members
Home / Discussions / C#
   

C#

 
GeneralRe: is this a cache problem or what? Pin
Christian Graus30-Oct-09 20:07
protectorChristian Graus30-Oct-09 20:07 
GeneralRe: is this a cache problem or what? Pin
niranjanR30-Oct-09 20:24
niranjanR30-Oct-09 20:24 
GeneralRe: is this a cache problem or what? Pin
Christian Graus30-Oct-09 20:30
protectorChristian Graus30-Oct-09 20:30 
GeneralRe: is this a cache problem or what? Pin
niranjanR30-Oct-09 21:10
niranjanR30-Oct-09 21:10 
GeneralRe: is this a cache problem or what? Pin
Christian Graus31-Oct-09 0:51
protectorChristian Graus31-Oct-09 0:51 
AnswerRe: is this a cache problem or what? Pin
Richard MacCutchan31-Oct-09 0:30
mveRichard MacCutchan31-Oct-09 0:30 
AnswerRe: is this a cache problem or what? Pin
Nish Nishant31-Oct-09 5:14
sitebuilderNish Nishant31-Oct-09 5:14 
AnswerRe: is this a cache problem or what? Pin
Shog931-Oct-09 5:26
sitebuilderShog931-Oct-09 5:26 
Have you considered just using Array.Sort()? Implementing your own sort is usually a bad idea unless you know what you're doing... Especially if you're locking, unlocking, and redisplaying the whole thing each pass through the loop...

If you want items to show up in sorted order as they're added to the list, then just do that; use an insertion sort or equiv. and let it sort as-needed.
niranjanR wrote:
I call showArray(N); before and after the execution of the sorting code.

See, this is what Nish is getting at: if you're running your sort on a background thread, you need some way of communicating your status back to the main thread - otherwise, showArray() will run too early (or too often if you also run it from the worker thread)...






Questionproblem with stored procedure Pin
RongNK30-Oct-09 17:05
RongNK30-Oct-09 17:05 
AnswerRe: problem with stored procedure Pin
Christian Graus30-Oct-09 17:09
protectorChristian Graus30-Oct-09 17:09 
GeneralRe: problem with stored procedure Pin
RongNK30-Oct-09 17:23
RongNK30-Oct-09 17:23 
GeneralRe: problem with stored procedure Pin
Christian Graus30-Oct-09 17:36
protectorChristian Graus30-Oct-09 17:36 
GeneralRe: problem with stored procedure Pin
RongNK30-Oct-09 17:47
RongNK30-Oct-09 17:47 
GeneralRe: problem with stored procedure Pin
lrsoft200930-Oct-09 18:19
lrsoft200930-Oct-09 18:19 
GeneralRe: problem with stored procedure Pin
Christian Graus30-Oct-09 19:15
protectorChristian Graus30-Oct-09 19:15 
GeneralRe: problem with stored procedure Pin
RongNK30-Oct-09 22:45
RongNK30-Oct-09 22:45 
GeneralRe: problem with stored procedure Pin
Christian Graus30-Oct-09 19:14
protectorChristian Graus30-Oct-09 19:14 
AnswerRe: problem with stored procedure Pin
PIEBALDconsult30-Oct-09 17:20
mvePIEBALDconsult30-Oct-09 17:20 
GeneralRe: problem with stored procedure Pin
RongNK30-Oct-09 17:24
RongNK30-Oct-09 17:24 
GeneralRe: problem with stored procedure Pin
PIEBALDconsult31-Oct-09 5:05
mvePIEBALDconsult31-Oct-09 5:05 
AnswerRe: problem with stored procedure Pin
lrsoft200930-Oct-09 18:09
lrsoft200930-Oct-09 18:09 
AnswerRe: problem with stored procedure Pin
deepikadurge31-Oct-09 4:48
deepikadurge31-Oct-09 4:48 
QuestionTips for creating a simple alternative of PowerPoint Pin
Abadi17630-Oct-09 12:53
Abadi17630-Oct-09 12:53 
AnswerRe: Tips for creating a simple alternative of PowerPoint Pin
Henry Minute30-Oct-09 13:02
Henry Minute30-Oct-09 13:02 
Question[Message Deleted] Pin
karayel_kara30-Oct-09 11:56
karayel_kara30-Oct-09 11:56 

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.