bug saving .amc file

You found an error in the program ? Report it here
Post Reply
peque

bug saving .amc file

Post by peque »

I've got an error today trying to save the album:

"Stream write error".

When I've tried to reopen it, I had only 140 out of 372 fils that I had before... so database corrupted... :(

Sorry... I can't give more details... as I didn't do anything special... I've been updating all my film info using Culturalia Script... I was saving regularly with no problem... but when I was goint to finish... :(

bye!
ScorEpioN
Posts: 264
Joined: 2004-08-17 11:02:02

Post by ScorEpioN »

and if you open the backup ? catalog.bak -> catalog.amc ??
Guest

Post by Guest »

backup file has been corrupted aswell. :(
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

A "write" error?
That's quite unusual that it could not write the file to disk. Is your disk full?
PeQuE

Post by PeQuE »

8,6 Gb free... :(
ClaytonAguiar
Posts: 3
Joined: 2007-07-26 00:08:14

Serious bug with Auto Open Catalog at startup

Post by ClaytonAguiar »

Hi,

sorry for the cross posts. I don't know where exactly this text should be placed. But it has potential to great headaches.

Hi,

I trying the following at the "auto open catalog file":
.\catalogs\clayton.amc

The program indeed opened the catalog at my USB stick - as I don't know the drive letter, I can't use absolute paths. But...

(BUG)
When I used Movie -> Get Information -> From File, ANT changed the "current directory" internal information to the folder where the AVI's were stored (in my case, the DVD-R drive).

When I clicked "Save", it warned me that couldn't save the catalog to the DVD-R disc (read-only media).

Get a worse scenario: If these movie files were on a writeable disk (HD, for example), clicking "save catalog" after each "Get information" would put a version of the catalog file of each folder where I placed a video.

(/BUG)
(SOLUTION)
Solution: At startup, if this attribute is set, check whether it is a relative or absolute path. If relative, expand it internally. But don't save it to the preferences, or you'll lose the portability (as a USB stick will be assigned a drive letter for each PC you plug it).
Perhaps the "Change current directory" behaviour is triggered by the dialog box used to select the movie files. As far as I remember, Open and Save "Common Dialogs" have an attribute to set this very behaviour.

The text below is a paste from the TOpenDialog.Options attribute of the Delphi encapsulation of the Windows Common Dialogs API.

ofNoChangeDir - After the user clicks OK, resets the current directory to whatever it was before the file-selection dialog opened.

The default value is False (it DOES change the current dir).

(/SOLUTION)

My first contribution for this really useful software.
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

The problem is not really related to the dialog, as in other places of the program the current directory is changed.
There must be a bug when I get the parameter from the config file, I should expand the file name at that time, as it is probably kept as relative path (there is no reason to keep a relative path internally, since the program location won't change while running...)
I'll check that and try to fix it quickly in 3.5.1 beta.
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

antp wrote:I'll check that and try to fix it quickly in 3.5.1 beta.
Is this problem fixed yet ? Before I spend more time to adapt AMC to PortableApps format I'll wait for a bugfixed version (or maybe next stable version) ;)
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

I forgot to mention it. Yes, I have made a change. I am not sure that it is fixed as I haven't tested that, but it should be.
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

Just did a short test with rc2 and it seems to save files with relative paths correct now - thanks !
Post Reply