Click here to Skip to main content
15,899,825 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: A horror in release code Pin
Jason Lepack (LeppyR64)3-Oct-08 10:23
Jason Lepack (LeppyR64)3-Oct-08 10:23 
GeneralRe: A horror in release code Pin
Scott Barbour3-Oct-08 10:31
Scott Barbour3-Oct-08 10:31 
GeneralRe: A horror in release code Pin
leppie3-Oct-08 23:12
leppie3-Oct-08 23:12 
GeneralRe: A horror in release code Pin
PIEBALDconsult4-Oct-08 6:31
mvePIEBALDconsult4-Oct-08 6:31 
GeneralRe: A horror in release code PinPopular
Steven A. Lowe10-Oct-08 4:04
Steven A. Lowe10-Oct-08 4:04 
GeneralRe: A horror in release code Pin
Graham Bradshaw4-Oct-08 9:05
Graham Bradshaw4-Oct-08 9:05 
GeneralRe: A horror in release code Pin
Paul Conrad5-Oct-08 18:51
professionalPaul Conrad5-Oct-08 18:51 
GeneralRe: A horror in release code Pin
Alois Kraus8-Oct-08 22:40
Alois Kraus8-Oct-08 22:40 
I guess the message was "Drive not A not Ready" from crss.exe. The reason for that is simple.
You have in your application somewhere a drive letter selection combo box.

That little snippet should exhibit this problem:
foreach (DriveInfo d in DriveInfo.GetDrives())
{
Console.WriteLine("Root: {0}", d.RootDirectory);
}

All you have to do is to check the DriveType if it is removeable and skip it altogether. If you do not access it then you wont have any problems with drive not ready messages.

Yours,
Alois Kraus
Generala minor horror Pin
BillW333-Oct-08 9:23
professionalBillW333-Oct-08 9:23 
GeneralRe: a minor horror Pin
Paul Conrad5-Oct-08 18:53
professionalPaul Conrad5-Oct-08 18:53 
GeneralRe: a minor horror Pin
BillW336-Oct-08 7:31
professionalBillW336-Oct-08 7:31 
GeneralRe: a minor horror Pin
Paul Conrad6-Oct-08 9:38
professionalPaul Conrad6-Oct-08 9:38 
GeneralRe: a minor horror Pin
BillW336-Oct-08 12:24
professionalBillW336-Oct-08 12:24 
GeneralRe: a minor horror Pin
Paul Conrad7-Oct-08 5:57
professionalPaul Conrad7-Oct-08 5:57 
GeneralRe: a minor horror Pin
sa_runner10-Oct-08 5:48
sa_runner10-Oct-08 5:48 
GeneralRe: a minor horror Pin
Paul Conrad10-Oct-08 7:14
professionalPaul Conrad10-Oct-08 7:14 
Generalevil hexadecimal numbers formatting Pin
Stefano Basili2-Oct-08 1:01
Stefano Basili2-Oct-08 1:01 
GeneralRe: evil hexadecimal numbers formatting Pin
CPallini2-Oct-08 1:53
mveCPallini2-Oct-08 1:53 
GeneralRe: evil hexadecimal numbers formatting Pin
PIEBALDconsult2-Oct-08 4:13
mvePIEBALDconsult2-Oct-08 4:13 
GeneralRe: evil hexadecimal numbers formatting Pin
Nagy Vilmos2-Oct-08 4:47
professionalNagy Vilmos2-Oct-08 4:47 
GeneralRe: evil hexadecimal numbers formatting Pin
Rob Grainger7-Oct-08 4:19
Rob Grainger7-Oct-08 4:19 
GeneralRe: evil hexadecimal numbers formatting Pin
jamie5502-Oct-08 12:53
jamie5502-Oct-08 12:53 
JokeRe: evil hexadecimal numbers formatting Pin
CPallini2-Oct-08 21:37
mveCPallini2-Oct-08 21:37 
GeneralRe: evil hexadecimal numbers formatting Pin
jamie5503-Oct-08 2:23
jamie5503-Oct-08 2:23 
QuestionRe: evil hexadecimal numbers formatting Pin
CPallini3-Oct-08 2:41
mveCPallini3-Oct-08 2:41 

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.