Page 1 of 1

bug saving .amc file

Posted: 2005-03-17 12:29:00
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!

Posted: 2005-03-17 13:03:52
by ScorEpioN
and if you open the backup ? catalog.bak -> catalog.amc ??

Posted: 2005-03-17 14:36:47
by Guest
backup file has been corrupted aswell. :(

Posted: 2005-03-17 16:29:48
by antp
A "write" error?
That's quite unusual that it could not write the file to disk. Is your disk full?

Posted: 2005-03-17 17:27:16
by PeQuE
8,6 Gb free... :(

Serious bug with Auto Open Catalog at startup

Posted: 2007-07-26 00:31:09
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.

Posted: 2007-07-26 13:53:27
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.

Posted: 2007-08-15 08:58:35
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) ;)

Posted: 2007-08-15 09:35:44
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.

Posted: 2007-08-15 17:59:35
by bad4u
Just did a short test with rc2 and it seems to save files with relative paths correct now - thanks !