Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Bug in GetFirstFile() and GetNextFile()

Author
Message
Jambo B
15
Years of Service
User Offline
Joined: 17th Sep 2009
Location: The Pit
Posted: 5th Aug 2015 14:55
Hello all again. Here's another bug I've found this week. This time it's with the directory reading routines.

When deleting a file within the program, the commands GetFirstFile() and GetNextFile() do not realise that the file has gone.



Clicking away from the app's Window, e.g. on the desktop, then clicking back to the app suddenly causes it to reassess its situation and suddenly the file disappears from its list.

Would anyone mind confirming that this is a bug, please?

Thanks very much,

James
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 6th Aug 2015 16:04 Edited at: 6th Aug 2015 16:08
this will help before getfirstfile, it updates the list direct.
(without i saw after the app resumes the directory refresh itself.)

SetFolder("")
SetFolder("media")

i agree its a bug,
the delete should set a flag and the getfirstfile should
refresh the internal list if the flag is set.

AGK (Steam) V2 Beta .. : Windows 10 Pro, 8.1 Pro 64 Bit : AMD (15.7.1) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)

Login to post a reply

Server time is: 2024-11-16 20:12:53
Your offset time is: 2024-11-16 20:12:53