Newsgroups : Borland : borland.public.delphi.rtl.win32 : 2008 May : Windows - No Disk error

www.cryer.info
Managed Newsgroup Archive

Windows - No Disk error

Subject:Windows - No Disk error
Posted by:"JJ" (nospam@nospam.com)
Date:Sun, 11 May 2008 22:25:15

Some users of my app get a "Windows - no disk" error when one of my windows
opens up

I can't duplicate it, but I suspect its related to this

for Count:=3 to 3 do
if DiskSize(Count)>0 then begin
end;

Perhaps if the user has removed a hard drive "improperly"- this DiskSize()
routine gives an error?

If this is correct, is there a safe way to see if a disk is mounted, without
generating an error?

Replies:

www.cryer.info
Managed Newsgroup Archive