RA_pdx wrote:Yes thanks, you are right. I am using Hatari with GEMDOS hard disk.
Now i know that it was not my fault that it doesn´t work - i spent several hours on this problem...
When having problems with OS calls, it helps to check their return values. TOS should be returning "invalid handle" error in this case.
The reason why Fforce() isn't implemented is that Hatari GEMDOS emulation doesn't (currently) have any knowledge of programs, it just catches GEMDOS calls.
Implications of this mean some differences to TOS:
* GEMDOS emulation file handles are global to the whole system, not specific to the program.
Other programs can access them if they just use correct handle (GEMDOS emulation handle IDs start from 64).
* Files that program leaves open aren't closed on program termination like TOS does.
I.e. GEMDOS emulated file handles could run out if exiting programs leave them open (unlike with TOS).
* Forced file handles wouldn't be automatically un-redirected on program exit (when it forgets to close it).
This which would be pretty much catastrophe.
I'm looking whether these could be worked around for next Hatari version.