> This version still has a known error with regard to CDS (drive > assignment) - all drive letters are assigned successively (ie E: F: > G:), if LASTDRIVE is reached it will gracefully handle that, but if > there is a hole between used drive letters but it is not big enough > for all units then it will replace the existing assignment (.e.g. if > current is C: D: F: and a driver is loaded with 3 units it will use > E: F: G: - i.e. F: is replaced). I am not sure the best fix, either > error/warn and stop loading (probably best) or skip past used letters > (so would be E: G: H:) but could cause weird behavior as most drivers > will probably only keep 1st drive + count. This of course is > untested as I still need to setup a test disk with a multi-unit > driver.
I don't think there's anything a true device driver can do except keep a starting value and a count, since DOS only returns the starting number. I think your only two choices are to abort, or to try skipping over the first "hole" you find and try to find another one with enough consecutive units. BTW, that's another advantage of designing modern programs as TSR's (or dual-mode TSR/Device Drivers), instead of as pure device drivers and requiring DEVLOAD (or similar equivalents) to install them outside of CONFIG.SYS. TSR's can be designed so that the drive letters don't need to be consecutive, and can even "roll around" when reaching the last drive (Z: or whatever) and start searching at the beginning (C: or A:) again. The "roll around", of course, is only needed if you don't start the search at C: (or A:). ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1 _______________________________________________ Freedos-devel mailing list Freedos-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-devel