Hello Rooters,
I am having this same problem with root 5.28 on win7 64-bit, and root 5.27.04 on winxp 32bit,
with systems that have removable disk drives with no media installed.
On my win7 system,
root [0] gSystem->GetVolumes("all")->ls();
OBJ: TList TList Doubly linked list : 0
OBJ: TNamed C: Local Disk (C:) : 0 at: 00F0A3B8
OBJ: TNamed D: Local Disk (D:) : 0 at: 049BCF68
OBJ: TNamed E: Local Disk (E:) : 0 at: 049BCFB0
OBJ: TNamed F: Local Disk (F:) : 0 at: 049BCFF8
OBJ: TNamed G: Removable Disk (G:) : 0 at: 049BD040
OBJ: TNamed H: Removable Disk (H:) : 0 at: 049BD088
OBJ: TNamed I: CD/DVD Drive (I:) : 0 at: 049BD0D0
root [1]
In my root app, whenTGFileDialog() calls TGFSComboBox() calls gSystem->AccessPathName() calls AccessPathName() calls ::_access() calls _taccess_s() calls GetFileAttributes(), that's when the pop up error box occurs (for both disk G: and H:)
Googling this, I came across a change to windows registry to change the popup behaviour:
http://support.microsoft.com/kb/128642This is changing HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Windows\ErrorMode to 2.
I tried this and the popup does indeed go away. I don't know yet if there are undesirable side-affects to this registry change.
So I'm not sure if this is just some windows problem, or if root could be changed to detect when a removable drive has no media and ignore it?
thanks
buddy