Filebrowser shows ghost file names…

May 24, 2008 at 8:21pm

Filebrowser shows ghost file names…

I have file that I created that was added to the file
browser. I exited Max and renamed the file to something else.
When I restarted Max, the file browser now shows the old file
name and the new file name when I search for things. How
can I make Max forget about the old file?
I am running Max5.02 on XP.

#38040
May 26, 2008 at 3:37pm

Anybody at Cycling aware of this? Can someone confirm…

#131879
May 27, 2008 at 3:24pm

Anybody?

#131880
May 27, 2008 at 4:06pm

Another problem I have found is that if you a patcher
named “test.pat” and it gets added to the DB, if you
change the name to test.maxpat, the DB gets confused.
It shows “test.pat” twice.

#131881
May 27, 2008 at 6:55pm

On 2008 May 27, at 11:06 AM, Anthony Palomba wrote:

> Another problem I have found is that if you a patcher
> named “test.pat” and it gets added to the DB, if you
> change the name to test.maxpat, the DB gets confused.
> It shows “test.pat” twice.

Max will be confused too, should you ever try to load that as an
abstraction. You can’t have multiple patchers with the same name
(regardless of extension) in the searchpath without causing
indeterminate behavior.

best,
Tim

#131882
May 27, 2008 at 7:02pm

On 2008 May 24, at 3:21 PM, Anthony Palomba wrote:

> I have file that I created that was added to the file
> browser. I exited Max and renamed the file to something else.
> When I restarted Max, the file browser now shows the old file
> name and the new file name when I search for things.
> I am running Max5.02 on XP.

The strategy used by the file browser to pick up changes works most of
the time, but sometimes it doesn’t. What it is doing is checking
folders in your searchpath to see if they are flagged as modified.
The OS generally marks them as such when creating or deleting a file.
I believe OS’s differ in what they do when you rename something.

We could watch every single file in your searchpath (probably
something slightly less than 10,000 files for the average user) and
thus hog all of the CPU all of the time (and make startup times really
unbearable). That’s obviously not such a good idea.

If you want find that your database is a bit stinky and needs a wash,
then you can rebuild it from scratch using the following message to Max:
;max db.reset

best,
Tim

#131883
May 27, 2008 at 7:12pm

Thanks Tim, it is good to know that such a mechanism exists.

#131884

You must be logged in to reply to this topic.