Richard,
The problem with *hacks* is, that is what they are hacks. If someone ever
picks up your code and starts using it, they may go "Gee Richard does it, so
it must be ok", then suddenly its a company wide standard... ;-)
I would at least put a HACK comment in front of it, so others will know
there should be a better way of doing this, but you have not found it.
HACK comments are similar to TODO comments, both can show up in your Task
List:
Catch ex As IOException
' HACK: We should have a real exception to catch
If ex.Message = "There is not enough space on the disk." Then
' Handle a disk full exception
Else
Throw ' let other IOexceptions Percolate up...
End if
Hope this helps
Jay
[quoted text, click to view] "spamfurnace" <spamfurnace@intermension.com> wrote in message
news:8160ca73.0403141555.2a342d2a@posting.google.com...
> Hi Jay,
>
> Thanks for your reply.
> Those are all good points and i agree... but this is just for a little
> music backup app for myself so im not too worried about a *hack*
>
> :)
>
> I've got it sorted though. Im a complete moron at the best of times.
> If i had haLF a brain I would have thought sooner to just fill a
> floppy drive (all i.44MB) of it to get the exception.
>
> But it's been so long since ive used one that i completely forgot i
> had one... floppy drive that is ;)
>
> If anyone cares, there is not a specific exception for the Disk Full
> condition it IS just good old System.IO.IOException.
>
> Wording is:
> There is not enough space on the disk.
>
>
> Now... does anyone know where i might order a "Stupid is As Stupid
> Does" bumper sticker.
>
> Thanks
> Richard