Author Topic: WinAPE DSK image corruption  (Read 2401 times)

0 Members and 1 Guest are viewing this topic.

Offline Executioner

  • Supporter
  • 6128 Plus
  • *
  • Posts: 783
  • Country: au
  • WinAPE Developer
    • WinAPE
  • Liked: 391
  • Likes Given: 60
WinAPE DSK image corruption
« on: 01:29, 15 September 09 »
Hi Everyone,

I've had reports over the years that WinAPE either deletes DSK image files or truncates them to 0 bytes in some cases. I've never been able to reproduce this, although I think I had it happen once on a much earlier release, ages ago. Most of the DSK emulation has been rewritten in the last few releases. I recently read in the old german forum some users complaining about it.

Has anyone had this happen with a recent version? If so, does anyone know of a way to reproduce the problem so I can track it down?

Offline fano

  • Supporter
  • 6128 Plus
  • *
  • Posts: 835
  • Country: fr
  • Easter Egg Programmer
    • Easter Egg
  • Liked: 278
  • Likes Given: 612
Re: WinAPE DSK image corruption
« Reply #1 on: 05:58, 15 September 09 »
HI ! i already had the problem when using disc drive B and writting on it.
"NOP" is the perfect program : short , fast and (known) bug free

Follow Easter Egg products on Facebook !

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1981
  • Likes Given: 4650
Re: WinAPE DSK image corruption
« Reply #2 on: 22:08, 15 September 09 »

I still have this problem at two(!) different PCs. One of five gets shot. So I always make a copy of a DSK image, before using if for WinApe. Which is just not funny.

The problem with WinApe is simple, that it altes the DSK without prompting the user.

Also, the SFII RTC still don't work in BCD mode.

Another problem is what happens if you quit Winape (DSK inserted) and then for example move the DSK or rename or erase it. Check it out.

Only few IDE commands of the SFII IDE part are supported.

WinApe is a very good emulator, but a bit too buggy, without this issues it would be the best!!! Winape is enough to run SOS, but it can't run FutureOS, that sucks.

Take it as a positive kind of critics to make it better!

TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Offline Executioner

  • Supporter
  • 6128 Plus
  • *
  • Posts: 783
  • Country: au
  • WinAPE Developer
    • WinAPE
  • Liked: 391
  • Likes Given: 60
Re: WinAPE DSK image corruption
« Reply #3 on: 03:28, 16 September 09 »
I still have this problem at two(!) different PCs. One of five gets shot. So I always make a copy of a DSK image, before using if for WinApe. Which is just not funny.

What does it actually do to the DSK image? Can you give me steps to reliably reproduce this because I haven't had it happen myself? Are you formatting the DSK or just writing to it? Is it a special format?

Quote
The problem with WinApe is simple, that it altes the DSK without prompting the user.

I'm not sure how long it's been there, but if you press F2, you'll find a check box for each drive Promt to save changes

Quote
Also, the SFII RTC still don't work in BCD mode.

I tried to figure out what this was doing wrong by single-stepping through the FuturOS code, but never quite figured it out. It works fine from BASIC. I'll see if I can find the time to go through this again.

Quote
Another problem is what happens if you quit Winape (DSK inserted) and then for example move the DSK or rename or erase it. Check it out.

Usually, it will create the DSK because it doesn't exist. It won't do this if you have the above check box checked without prompting. You can also check the Temporary Writes check box to make it never save changes.

Quote
Only few IDE commands of the SFII IDE part are supported.

Yes, the ones used by SymbOS are supported, others are only partially supported. Can you be more specific as to what you want supported.

Quote
WinApe is a very good emulator, but a bit too buggy, without this issues it would be the best!!! Winape is enough to run SOS, but it can't run FutureOS, that sucks.

Take it as a positive kind of critics to make it better!

I do, thanks. Unfortunately, I don't have much time at the moment to do updates or fixes... Hopefully I'll catch up with work soon.

Offline MiguelSky

  • 464 Plus
  • *****
  • Posts: 381
  • Country: es
    • CPCGamesCD
  • Liked: 213
  • Likes Given: 434
Re: WinAPE DSK image corruption
« Reply #4 on: 13:03, 06 May 20 »
Another problem is what happens if you quit Winape (DSK inserted) and then for example move the DSK or rename or erase it. Check it out.
In my case, a 256 bytes size ghost dsk is created. It's quite annoying, I haven't been able to avoid this. Maybe should I delete any Windows registry key?

Offline GUNHED

  • 6128 Plus
  • ******
  • Posts: 1.972
  • Country: de
  • Reincarnation of TFM
    • FutureOS - The quickest OS for the CPC and Plus
  • Liked: 890
  • Likes Given: 2220
Re: WinAPE DSK image corruption
« Reply #5 on: 13:14, 06 May 20 »
In my case, a 256 bytes size ghost dsk is created. It's quite annoying, I haven't been able to avoid this. Maybe should I delete any Windows registry key?
IMHO that will not help, it's WinApe itself. It doesn't find the DSK at the place where it was before, so it just makes a new one, but 256 bytes only. That does lead to confusion.
http://futureos.de --> Get the revolutionary FutureOS (Recent update: 2019.08.07)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2019.08.14)

Offline skylas

  • CPC664
  • ***
  • Posts: 110
  • Country: gr
    • AMSTRAD SAKIS
  • Liked: 171
  • Likes Given: 162
Re: WinAPE DSK image corruption
« Reply #6 on: 04:32, 30 June 20 »
I have noticed that sometimes, i thought that it was maybe due to have opened 2 emulators.
Winape is my favourite emulator. Just another thing i think i had noticed is that is saves the file after you close the emulator, so if you have saved a program that you work on and not closed the emulator, and electricity is off, then you may lose it. Not sure completely about it, but that was the impression i had.
Web: https://amstradsakis.blogspot.com
Twitter: https://twitter.com/AmstradSakis
My programs (only BASIC):
RETRO-LOADSHEET ON AMSTRAD CPC!
PENALTY KICKS!
CAPITAL QUIZ!
CAPITAL QUIZ 2! (Reverse edition)
HEART CHASER
HEART CHASER 2!
HEADS OR TAILS (ΚΟΡΩΝΑ/ΓΡΑΜΜΑΤΑ)
HEART CHASER 3!
BARBOUTI!

Offline megachur

  • CPC664
  • ***
  • Posts: 71
  • Country: fr
  • z80 Powaaa !
    • cpc-power
  • Liked: 102
  • Likes Given: 8
Re: WinAPE DSK image corruption
« Reply #7 on: 07:23, 30 June 20 »
For me WINAPE does this :

When you open a DSK file, it takes the "write right" of the file.

So you can't write on or move the DSK file during the execution of WINAPE...

First bug : If you close WINAPE and move after the DSK file to another location...When you open WINAPE it create an empty DSK file with the same DSK filename at the old location of the DSK...

Second thing (is it really a bug ?) : as WinAPE don't make an exclusive access to the DSK file, you can open the DSK file with another tool or Emulator but it's 'read only' in this case.
If you modify the DSK file with the other tool or emulator and if this others programs don't check the 'access right' of the file, you will not modify the DSK file and loose your change !
Then when WinAPE close the file or the user quit WINAPE, the DSK file is writen only with the change made in WINAPE...
The first bug can be resolved easly by Executioner... Hope to see this in the new release of WinAPE soon !  ;D

Offline freemac

  • 464 Plus
  • *****
  • Posts: 326
  • Country: 00
  • Liked: 253
  • Likes Given: 250
Re: WinAPE DSK image corruption
« Reply #8 on: 12:02, 06 July 20 »

Files are flush at close of WinAPE, ones opened by emulator, and ones opened by emulator's editor.
I create a lot of new disk.


Sometime, deleting file while WinAPE is closed, make ghost file (with just 1KB, the disk header no tracks)