News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Can't remove the bookmark symbol

Started by ollydbg, May 31, 2009, 09:00:29 AM

Previous topic - Next topic

ollydbg

Hi, I find that a bookmark symbol will always exist in my main.cpp file.  see the screen shot. Even I toggle off this bookmark and close my workplace. Reopen the cbp file, it is there again.  :shock: I'm using Windows XP, and the latest SVN version build my self.

Any suggestions? Thanks.


[attachment deleted by admin]
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

killerbot

first question : did you put the bookmark there yourself,or did it appear there through some other actions (then the appearance itself would already be a bug).

ollydbg

If I can remember, I haven't put it there.

It seems this symbol always happens in the last line of file. I turn off the bookmark, and edit my main.cpp.

After reopen the project, this icon appeared again :(, see the screen shot below.




[attachment deleted by admin]
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Jenna

Do you have BrowseTracker enabled ?
If yes, is it configured to use Bookmarks instead of BrowseMarks ?
If yes, try to delete it via "ContextMenu -> BrowseTracker -> Clear BrowseMark".
If it's gone now, it's an interference between BrowseTracker using BookMarks as symbols and the Bookmarks used by the cbEditor.


ollydbg

Quote from: jens on May 31, 2009, 01:31:35 PM
Do you have BrowseTracker enabled ?
Thanks for your help. Yes, I have BrowseTracker enabled.

QuoteIf yes, is it configured to use Bookmarks instead of BrowseMarks ?

It is configured as "BrowseMarks".

QuoteIf yes, try to delete it via "ContextMenu -> BrowseTracker -> Clear BrowseMark".
It seems this symbol can't be cleared by "clear browseMark", See the screen shot below, BrowseMarks were "three points like" symbols, I believe it is a "bookmark" symbol.

QuoteIf it's gone now, it's an interference between BrowseTracker using BookMarks as symbols and the Bookmarks used by the cbEditor.

So, it is still there. :(

For another test, things become more confusing.

I add two browsemarks before bookmark(screen shot 1)and close my project, but after reopened it, another bookmark appeared at the same position of the second browsemark(screen shot 2).








[attachment deleted by admin]
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Jenna

You can try to disable BrowseMarks plugin and see if it is gone then.
Or try what happens, if you delete the appropriate "*.bmarks"-file (you might want to have alook inside it before, to see if it can be related to your issue).

ollydbg

#6
Thanks.

After disabling the "BrowseTracker plugin" and a reopen my project, all symbols were gone.

Here is the my **.bmarks

Quote
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<BrowseTracker_layout_file>
   <ActiveTarget name="Debug" />
   <File name="main.cpp" open="1" top="1" tabpos="1">
      <Cursor position="704" topLine="2" />
      <BrowseMarks positions="698,660" />
      <Book_Marks positions="5798,698,698" />
   </File>
</BrowseTracker_layout_file>

So, both BrowseMarks and Book_Marks were recorded in this file.

If I remove the *.bmarks, and enabled the BrowseTrack plugin, I randomly add some bookmarks and browsemarks, 

after testing...
I found that only "BrowseMarks" can be recorded in this *.bmarks file. So, that may be the cause of my problem.

Thanks.

If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Pecan

#7
Quote from: ollydbg on May 31, 2009, 02:19:09 PM
Thanks.

After disabling the "BrowseTracker plugin" and a reopen my project, all symbols were gone.

...
So, both BrowseMarks and Book_Marks were recorded in this file.

If I remove the *.bmarks, and enabled the BrowseTrack plugin, I randomly add some bookmarks and browsemarks, 

after testing...
I found that only "BrowseMarks" can be recorded in this *.bmarks file. So, that may be the cause of my problem.

Thanks.



I've seen this happen when the options for BrowseMarks only and BrowseMarks==BookMarks were switch back and forth. But was never able to reproduce the problem. It has something to do with a combination of switching and opening/closing the file.

However, a sort, a clearAll, then a project close while the file is still open should have cleared the problem.

ollydbg

Thanks, my original problem disappeared.

The new problem is like I said before, it seems "bookmarks" weren't be recorded. If I set several bookmarks, then close the project, I will give the *.bmarks file like below:

Quote
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<BrowseTracker_layout_file>
   <ActiveTarget name="Debug" />
   <File name="main.cpp" open="1" top="1" tabpos="1">
      <Cursor position="572" topLine="0" />
      <BrowseMarks positions="465,657" />
      <Book_Marks positions="" />
   </File>
</BrowseTracker_layout_file>

Note: Book_Marks positions=""

Thanks.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Pecan

Quote from: ollydbg on May 31, 2009, 03:06:13 PM
Thanks, my original problem disappeared.

The new problem is like I said before, it seems "bookmarks" weren't be recorded. If I set several bookmarks, then close the project, I will give the *.bmarks file like below:

Quote
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<BrowseTracker_layout_file>
   <ActiveTarget name="Debug" />
   <File name="main.cpp" open="1" top="1" tabpos="1">
      <Cursor position="572" topLine="0" />
      <BrowseMarks positions="465,657" />
      <Book_Marks positions="" />
   </File>
</BrowseTracker_layout_file>

Note: Book_Marks positions=""

Thanks.

BookMarks are never saved unless the Mark_Style options is set.