Thread: access to devices

  1. #1
    Registered User
    Join Date
    Apr 2008

    access to devices

    hi, Im using device IO control to get access to the physical disks on my machine. So far i have a program to access the first 3 physical disks, but when i come to access the 4th my program stops working?!!? I have 4 physical disks in my machine so i was wondering if it is a case of device io control only allowing access to 3 physical disks at a time? surely this cant be right as im closing the handles on each disk after im finished?

    Im sorry this is a bit of a random questions and i understand if no one has any idea what im talking about but in this case im not sure that posting my code will help any

    any opinions would be welcomed?

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    Are they numbered 0 to 3 or 1 to 4?
    If it's the former, and you're trying to access number 4, then yes it will fail.

    Also "doesn't work" doesn't help!
    Go through your code and add verbose error checking and reporting of any and all error status returns, and then post relevant code and error messages.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Order of access labels in class definition
    By Mario F. in forum C++ Programming
    Replies: 10
    Last Post: 06-16-2006, 07:13 AM
  2. ww hosting and SSH access
    By spoon_ in forum A Brief History of
    Replies: 9
    Last Post: 04-07-2005, 08:49 AM
  3. Replies: 3
    Last Post: 09-22-2003, 09:48 PM
  4. Direct disk access in DOS
    By VirtualAce in forum A Brief History of
    Replies: 3
    Last Post: 02-26-2002, 02:52 PM