>I'm still a little curious about why I had to *add* something to the
>registry when what I was trying to do was remove any reference that
>POSE had ever been on the system. (Like the very first time POSE ran;
>it didn't have the empty MRU problem.)
The bug may have been introduced to a version of Poser *after* you ran
Poser for the first time.
The bug had to do with the way I was using STL to manage the list of MRU
files. When I went to add a file to the list, I would use the STL function
find() to see if the file was already in the list. find() returns an
iterator indicating where the entry was found, or collection.end() if the
entry could not be found.
I would take the returned iterator and compare it against
collection.begin(). If the two matched, then I assumed that the file I
wanted to add was already in the list and that it was already at the
beginning of the list. In that case, my function would just return.
However (and this is where the bug comes in), for empty lists,
collection.end() == collection.begin(). Which means that my "add a file to
the MRU list" function would simply do nothing and return if the list was
empty.
-- Keith Rollin
-- Palm OS Emulator engineer