Menu

#1661 Disk image stays attached to drive when drive is disabled

v3.x
open
None
Drives
2022-01-09
2022-01-05
No

Sorry to put this on you Michael, but, I came across this bug through the error message of a disk not being able to be used in 2 different drives.

The problem is that the disk image stays attached to the drive even when the drive is disabled, making it impossible to be used in a different drive, worse even is that this most likely gets saves when saving the settings making the disk image unusable since a non-existent drive automatically 'holds it open'.

IMHO when disabling a drive it should detach any disk images that are attached to it to both make sure the disk image does not suffer data-loss and to prevent this situation.

Discussion

  • Michael Martin

    Michael Martin - 2022-01-09

    This is more general than that; changing the drive type to something image-incompatible (like 1541 to 1581) also doesn't detach any images and commands like LOAD "$",8 will start misbehaving.

    I think we should detach on any drive type change.

     
  • Marco van den Heuvel

    I agree, imo detaching the disk image on any kind of drive type change would be good (make sense).

     

Log in to post a comment.