Minor Bug using Connect To...

[expired user #5700]'s profile image [expired user #5700] posted 10 years ago in General Permalink
I'm not certain when this first appears, but when I now use the 'Connect To' option from the menu, the program always fails :

exception message : Error: Session "0&3 MySQL Replication" not found in registry.

In this example, the session is called 03 MySQL Replication - not sure where the & is coming from (shortcut key?)



BugReports:
date/time : 2013-11-18, 09:43:04, 893ms
computer name : JONLEGRAS
user name : jlegras <admin>
operating system : Windows XP Service Pack 3 build 2600
system language : English
system up time : 1 hour 41 minutes
program up time : 11 minutes 14 seconds
processors : 2x Intel(R) Pentium(R) D CPU 3.40GHz
physical memory : 2601/3327 MB (free/total)
free disk space : (C:) 10.30 GB
display mode : 1280x1024, 32 bit
process id : $d50
allocated memory : 32.86 MB
largest free block : 726.66 MB
executable : heidisql.exe
exec. date/time : 2013-11-16 08:46
version : 8.1.0.4639
compiled with : Delphi XE5
madExcept version : 4.0.8.1
callstack crc : $2c00c0ee, $3dfbdb21, $3dfbdb21
exception number : 5
exception class : Exception
exception message : Error: Session "0&3 MySQL Replication" not found in registry.

main thread ($e24):
008225d8 heidisql.exe dbconnection 671 +5 TConnectionParameters.Create
0092c417 heidisql.exe Main 3379 +29 TMainForm.SessionConnect
0066ad36 heidisql.exe Vcl.Menus TMenuItem.Click
0066c38b heidisql.exe Vcl.Menus TMenu.DispatchCommand
0066d5fa heidisql.exe Vcl.Menus TPopupList.WndProc
0066d549 heidisql.exe Vcl.Menus TPopupList.MainWndProc
0053b3b0 heidisql.exe System.Classes StdWndProc
7e418a0b USER32.dll DispatchMessageW
00684ceb heidisql.exe Vcl.Forms TApplication.ProcessMessage
00684d2e heidisql.exe Vcl.Forms TApplication.HandleMessage
00685069 heidisql.exe Vcl.Forms TApplication.Run
0095c96f heidisql.exe heidisql 77 +24 initialization
ansgar's profile image ansgar posted 10 years ago Permalink
Ah... this is again Delphi/Windows. Menus and submenus and menu items by default have a "AutoHotkey" property, which automatically applies some hotkey, which is represented with a "&" char before the relevant character. But I can fix that.
Code modification/commit from ansgar.becker, 10 years ago, revision 8.1.0.4641
Remove hotkey from "Connect to" menu items before using their captions as registry keys. See http://www.heidisql.com/forum.php?t=14032
ansgar's profile image ansgar posted 10 years ago Permalink
Fixed in r4641

Please login to leave a reply, or register at first.