theWord
https://forum.theword.net/

Bookmarks get lost
https://forum.theword.net/viewtopic.php?f=8&t=6510
Page 1 of 2

Author:  rdwray [ Mon Apr 13, 2015 10:53 am ]
Post subject:  Bookmarks get lost

Open a window and set a bookmark.
Open a second window and that bookmark is not there.
If the second window is closed after the first then the bookmark is lost.

Doesn't make since unless the config file is only being loaded for the first window and not the second.

Author:  csterg [ Mon Apr 13, 2015 4:00 pm ]
Post subject:  Re: Bookmarks get lost

Each 'window' is a separate theWord instance. The last one saves and overwrites the config.ini file.
Costas

Author:  rdwray [ Mon Apr 13, 2015 5:10 pm ]
Post subject:  Re: Bookmarks get lost

That should not be. This goes along with saving window sizes on exit without user intervention. If a user saves a bookmark then opens another instance, it should reload the config file and the second instance does not. If a window size is changed, the user should have to tell the windows to save the change or it is ignored.

.ini files are designed to hold data that can be changed at any point. If a bookmark is added/changed then it should be written. If a user changes a window, then they should have the option of saving that change on closing the window.

Author:  csterg [ Fri Apr 17, 2015 3:38 pm ]
Post subject:  Re: Bookmarks get lost

I see your point. Unfortunately theWord does not work like this. Data that are stored in the config.ini (such as bookmarks) are only saved when theWord exits (and is some other cases, like when saving a module layout)

Author:  rdwray [ Fri Apr 17, 2015 3:51 pm ]
Post subject:  Re: Bookmarks get lost

I do a little coding and I understand the basics and know that when some presses a hot key a piece of code is activated. Why can't that piece of code have an additional IniWrite? The IniWrite is already there, it just needs to be accessed.

Author:  csterg [ Fri Apr 17, 2015 9:52 pm ]
Post subject:  Re: Bookmarks get lost

This happens for performance reasons. It is common for an operation to perform 10-20-30 IniWrites. If these were performed on the disk, the performance would be horrible. At this moment they are done in memory, and theWord writes these to disk on exit.

If the config.ini is 1MB for example, and an operation performed 10-20 writes, you can imagine what the result would be.

Author:  rdwray [ Sun Apr 26, 2015 10:35 am ]
Post subject:  Re: Bookmarks get lost

You only write when the user requests it - if a bookmark is set, then the write is done, if a new window is created, a write is done. There is no need for continues reads and writes and would not affect performance. I sit and watch the busy cursor many times when saving data.

I just found another problem with it in that windows went into hibernate and would not come back out until the computer was restarted, consequently the bookmark was lost. Currently the only way to save a bookmark is to create it, close TW and reopen it.

Author:  csterg [ Sun Apr 26, 2015 7:52 pm ]
Post subject:  Re: Bookmarks get lost

Well, I suppose i could force a write whenever a bookmark is made. Would that help?

Author:  rdwray [ Sun Apr 26, 2015 8:06 pm ]
Post subject:  Re: Bookmarks get lost

That would be a great help to those of us who are old and forgetful.

And in pushing my luck, could you also write the View > Layout when it is created rather than when TW is closed? Can there possibly be a need to save the view on each exit? Please :)

Author:  csterg [ Wed Apr 29, 2015 8:07 am ]
Post subject:  Re: Bookmarks get lost

I think i can, let me see.

Author:  rdwray [ Wed Apr 29, 2015 12:16 pm ]
Post subject:  Re: Bookmarks get lost

Thanks Costas, God's blessings...

Author:  rdwray [ Sat Oct 31, 2015 12:35 pm ]
Post subject:  Re: Bookmarks get lost

Another issue with bookmarks is that they are being loaded with the application and if more than one instance is open, the bookmark in the last instance closed is the one saved.

If would be much better if the bookmarks were saved and read at the user's command.

Author:  csterg [ Fri Nov 06, 2015 9:20 am ]
Post subject:  Re: Bookmarks get lost

This is an 'issue' with almost every setting.
Bookmarks are saved in the config.ini file, which is only saved when theWord exits (and a few other times, like when editing Module Sets).
Costas

Author:  rdwray [ Sat Feb 06, 2016 1:24 pm ]
Post subject:  Re: Bookmarks get lost

Sure wish you would fix this problem. I just had two instances open and:
1. I pressed Ctrl + 2 on the instance I wanted the bookmark and did not press "Ok" because it was overwriting another bookmark.
2. Closed the other instance.
3. Pressed "Ok" to save the bookmark.
4. Closed the instance.
5. Reopened TW.

Not only was the bookmark lost but it opened the instance I closed first.

Author:  csterg [ Sat Apr 02, 2016 4:34 pm ]
Post subject:  Re: Bookmarks get lost

This would require a complete re-write in the logic of how multiple instances work. Sorry, this is no trivial

Page 1 of 2 All times are UTC + 2 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/