?[8.50b3]Saved search is not visible

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

ferhat
Junior Member
Junior Member
Posts: 54
Joined: 2013-09-03, 06:29 UTC

?[8.50b3]Saved search is not visible

Post by *ferhat »

Environment: WinXP 32Bit

Steps:
1) Start TC
2) Press Alt + F7
3) Enter sth and switch to Load/Save tab
4) Click on Save, Enter a name
5) Close search window
6) Press Alt + F7
7) Switch to Load/Save tab

observed:
The saved search cannot be seen. The list is always empty.
If you try to save another search using the same name it will ask you if you want to overwrite the existing search.
User avatar
white
Power Member
Power Member
Posts: 5810
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

Not confirmed. Environment: WinXP 32Bit
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

What name did you use?
Author of Total Commander
https://www.ghisler.com
ferhat
Junior Member
Junior Member
Posts: 54
Joined: 2013-09-03, 06:29 UTC

Post by *ferhat »

@ghisler

I tested this issue now on my second environment Win8 x64
I can't reproduce it here. Both 32/64 Bit versions are working very well.

On my WinXP 32Bit SP3 I am able to reproduce it!
I have used simple names like "abc" , "123" etc...

TC was able to save the searches because it warned me when I tried to save a second search with the same name e.g. "abc" or "123".
The only problem is that it was not able to show it inside the window.

Where do you store the searches?
In the registry? or in the file system?
May be I can check if the stored data is somehow corrupted?!?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

In wincmd.ini. You can open it via menu Configuration - Change settings files directly. Youn can send me your ini via e-mail to support at ghisler dot com.

Maybe the items are there, just white text on white background or so? Do they appear when you click in the list?
Author of Total Commander
https://www.ghisler.com
ferhat
Junior Member
Junior Member
Posts: 54
Joined: 2013-09-03, 06:29 UTC

Post by *ferhat »

Hmm I think it was my old corrupted wincmd.ini.
I removed all old searched below [searches]

Now its working fine!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Do you still have them? If yes, can you post them here, or send them to me by e-mail to support at ghisler dot com, please? I really wonder what was causing this problem.
Author of Total Commander
https://www.ghisler.com
ferhat
Junior Member
Junior Member
Posts: 54
Joined: 2013-09-03, 06:29 UTC

Post by *ferhat »

I am not sure if I have a backup. I will check it later and let you know.
ferhat
Junior Member
Junior Member
Posts: 54
Joined: 2013-09-03, 06:29 UTC

Post by *ferhat »

OK,... I don't have a backup but I will try to reproduce it.
ferhat
Junior Member
Junior Member
Posts: 54
Joined: 2013-09-03, 06:29 UTC

Post by *ferhat »

I think I've got it now. It happened because of a corrupted wincmd.ini.
Let me explain...

Before I found this bug described here I found that bug:
http://ghisler.ch/board/viewtopic.php?t=37938
This bug caused an access violation and wrote some corrupted content below the section "[searches]" inside the wincmd.ini file.

I am sure that the corrupted content caused that TC was unable to show the saved searches!

I have tried to reproduce it the same way but I didn't succeed.
After that I tried to manipulate the wincmd.ini with an editor and I think I found the reason and can reproduce the behavior now!


Steps:
1) Open your wincmd.ini
2) Replace the content below the section [searches] with only these lines:

=A_SearchFor=
A_SearchIn=
A_SearchText=
A_SearchFlags=


3)Save the file
4) Open TC
5) Open Search ALT + F7
6) Switch to Load/Save tab
7) Click on Save
8) Enter "test" and click OK
9) Close search window
10) Open search window again (you can also restart TC if you want)

observed:
You can't see anything.
Open now wincmd.ini
You will see that TC has saved "test" correctly but is not able to show it inside the window.



Thanks,
Ferhat
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Unfortuantely I couldn't reproduce it. Can you post the exact content of section [searches], please?

I tried with

[searches]
A_SearchFor=
A_SearchIn=
A_SearchText=
A_SearchFlags=

and it worked. Or do you mean
[searches]
=A_SearchFor=
A_SearchIn=
A_SearchText=
A_SearchFlags=

"=A_SearchFor=" isn't a valid entry.
Author of Total Commander
https://www.ghisler.com
ferhat
Junior Member
Junior Member
Posts: 54
Joined: 2013-09-03, 06:29 UTC

Post by *ferhat »

This is exactly what I meant:

[searches]
=A_SearchFor=
A_SearchIn=
A_SearchText=
A_SearchFlags=


And I can still reproduce it...

I know that this "=A_SearchFor=" is invalid.
As I said before an invalid entry like this was written into the ini file by the bug. which I have reported before:
http://ghisler.ch/board/viewtopic.php?t=37938
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Ah, I see - can you still create this faulty entry by entering a very long name?
Author of Total Commander
https://www.ghisler.com
ferhat
Junior Member
Junior Member
Posts: 54
Joined: 2013-09-03, 06:29 UTC

Post by *ferhat »

No I can't. Therefore this bug can get a lower priority.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

=A_SearchFor= is invalid, it means an empty key with value "A_SearchFor=". Therefore it's ignored by TC.
Author of Total Commander
https://www.ghisler.com
Post Reply