Click here to Skip to main content
16,007,885 members
Home / Discussions / C#
   

C#

 
Questionhow to find image on the screen Pin
doktorno25-Sep-07 9:17
doktorno25-Sep-07 9:17 
AnswerRe: how to find image on the screen Pin
Christian Graus25-Sep-07 11:03
protectorChristian Graus25-Sep-07 11:03 
GeneralRe: how to find image on the screen Pin
Dan Neely25-Sep-07 11:15
Dan Neely25-Sep-07 11:15 
GeneralRe: how to find image on the screen Pin
Christian Graus25-Sep-07 11:22
protectorChristian Graus25-Sep-07 11:22 
QuestionHow to cause volume fragmentation? Pin
MammPo25-Sep-07 8:02
MammPo25-Sep-07 8:02 
AnswerRe: How to cause volume fragmentation? Pin
Dave Kreskowiak25-Sep-07 10:07
mveDave Kreskowiak25-Sep-07 10:07 
GeneralRe: Thank you! -- How to cause volume fragmentation? Pin
MammPo26-Sep-07 9:43
MammPo26-Sep-07 9:43 
AnswerRe: How to cause volume fragmentation? [modified] Pin
Luc Pattyn25-Sep-07 15:59
sitebuilderLuc Pattyn25-Sep-07 15:59 
Hi,

this is what I would suggest, it is not very hard to do:

1.
create a disk partition (with Partition Magic or something similar) of twice the minimal size
that will fit your needs (this speeds up what follows). Make sure it is empty to start with.

2.
create a lot of files of equal small size until your partition is full; give them sequential
filenames (such as A00000000.dat and counting up). small would be say 8KB (I would suggest
you take partition size divided by 64K and rounded up to the next power of 2
multiple of 512B, to try and get the cluster size).

3.
now delete half of those files (the ones with an even filename);
that should result in the most fragmented partition possible: half of the partition is
empty, but a file of that size would have all its clusters non-adjacent.

4.
now run your real app and see what happens...

BTW: I would do steps 2,3,4 separately so you can inspect the situation to make sure
the situation is as expected.


Hope this helps.




-- modified at 22:49 Tuesday 25th September, 2007

Luc Pattyn [Forum Guidelines] [My Articles]


this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google


GeneralRe: Thank you! -- How to cause volume fragmentation? Pin
MammPo26-Sep-07 9:45
MammPo26-Sep-07 9:45 
Questioni need some help Pin
matched25-Sep-07 7:54
matched25-Sep-07 7:54 
AnswerRe: i need some help Pin
Guffa25-Sep-07 8:37
Guffa25-Sep-07 8:37 
AnswerRe: i need some help Pin
InvalidTypecast25-Sep-07 8:55
InvalidTypecast25-Sep-07 8:55 
QuestionInvoke a Property's Method using Reflection Pin
maxJared25-Sep-07 6:36
maxJared25-Sep-07 6:36 
AnswerRe: Invoke a Property's Method using Reflection Pin
MidwestLimey25-Sep-07 9:23
professionalMidwestLimey25-Sep-07 9:23 
GeneralRe: Invoke a Property's Method using Reflection Pin
maxJared25-Sep-07 9:50
maxJared25-Sep-07 9:50 
QuestionSave copy of XSD Pin
Bonsta25-Sep-07 5:14
Bonsta25-Sep-07 5:14 
QuestionHow to customize strings with Format method? Pin
Diego F.25-Sep-07 5:10
Diego F.25-Sep-07 5:10 
AnswerRe: How to customize strings with Format method? Pin
Diego F.25-Sep-07 5:14
Diego F.25-Sep-07 5:14 
AnswerRe: How to customize strings with Format method? Pin
PIEBALDconsult25-Sep-07 5:57
mvePIEBALDconsult25-Sep-07 5:57 
GeneralRe: How to customize strings with Format method? Pin
Luc Pattyn25-Sep-07 6:37
sitebuilderLuc Pattyn25-Sep-07 6:37 
GeneralRe: How to customize strings with Format method? Pin
Diego F.25-Sep-07 7:03
Diego F.25-Sep-07 7:03 
Questionremoving data souces from projects Pin
shwaguy25-Sep-07 5:08
shwaguy25-Sep-07 5:08 
AnswerRe: removing data souces from projects Pin
Dave Kreskowiak25-Sep-07 6:59
mveDave Kreskowiak25-Sep-07 6:59 
QuestionThreading/Events Pin
Dio2225-Sep-07 4:28
Dio2225-Sep-07 4:28 
AnswerRe: Threading/Events Pin
Luc Pattyn25-Sep-07 4:53
sitebuilderLuc Pattyn25-Sep-07 4:53 

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.