IOException only thrown on 64 bit windows

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • epots9
    Recognized Expert Top Contributor
    • May 2007
    • 1352

    #1

    IOException only thrown on 64 bit windows

    I've made an app that simply copies a complete directory to x amount of removable drives.

    everything works on the 32 bit environment, but installing an running my app on windows 7 64 bit throws an "System.io.ioEx ception Device not ready"

    this seems to be the line that triggers it:
    Code:
    DriveInfo[] drives = DriveInfo.GetDrives();
    it kills the app there and doesn't continue, so i'm not sure if it can be triggers again down the code, but mostly is linked to the above line.

    any tips to making it work in the 64 bit world?


    **UPDATE
    Code:
    if(drives[x].TotalSize <= 34359738368)
    after alot playing round i found the true cause of the problem, the above code. for whatever reason it doesn't like that "totalsize" call in a 64 bit enironment...do es any1 know why?
    Last edited by epots9; Nov 5 '10, 06:11 PM. Reason: Error being triggered from something else
Working...