Page 1 of 1

Possible bug with "GetTempFileName()"

Posted: Wed Apr 12, 2023 9:46 am
by Allanon
Hello, on AmigaOS3x the function GetTeempFileName()" returns always the same filename : T:hollywood.eaaaaa
I've tested with a compiled executable on WinUAE.

Code: Select all

For i = 1 To 10
    DebugPrint(GetTempFileName())
Next

Re: Possible bug with "GetTempFileName()"

Posted: Wed Apr 12, 2023 6:51 pm
by plouf
do you use holywood 10?
to me hollywood 10 in aos3 shows
T:hollywood.A34584
T:hollywood.B34584
T:hollywood.C34584
T:hollywood.D34584
T:hollywood.E34584
T:hollywood.F34584
T:hollywood.G34584
T:hollywood.H34584
T:hollywood.I34584
T:hollywood.J34584

Re: Possible bug with "GetTempFileName()"

Posted: Wed Apr 12, 2023 7:51 pm
by plouf
ok Bug is with fpu executable and not plain one

also note that compiling with aos3 hollywood compiler produce output always hollywood.aaaaa
while compiling with windows compiler->aos fpu output is always hollywood.baaaa

Re: Possible bug with "GetTempFileName()"

Posted: Thu Apr 13, 2023 8:28 am
by Allanon
Yes, Hollywood 10 here
Thank you for confirming the problem :)

Re: Possible bug with "GetTempFileName()"

Posted: Thu Apr 13, 2023 3:44 pm
by airsoftsoftwair
Yes, definitely a bug. Will be fixed.

Re: Possible bug with "GetTempFileName()"

Posted: Sat Jul 20, 2024 4:26 pm
by airsoftsoftwair

Code: Select all

- Fix [OS3fpu/WarpOS]: Temporary file name generator was completely broken and returned the very same file
  name most of the time; this could affect several parts of Hollywood, including the SDK and functions like
  GetTempFileName(); this bug was introduced in Hollywood 6.0 and unfortunately went unnoticed until now