yonyon1711 / vba-rerecording

Automatically exported from code.google.com/p/vba-rerecording
GNU General Public License v2.0
0 stars 0 forks source link

Weird bug with VS 2010 Release build of v7.23.5 #80

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Release-Build the v7.23.5 source. 
2. Launch the built executable.
3. Click on menu Options->Input->Customize All Commands... and open the hotkey 
config dialog.
4. Focus in the "Enter the new accelerator:" edit box, press any 
key-combination that contains the M key on the keyboard.

What is the expected output? What do you see instead?
The correct name of the key-combonation should be displayed in the edit box. 
Instead, the 'M' character is always replaced with a 'K' character.

Apparently, when the executable is running, something overwrites the first 
element of MAPVIRTKEYS mapVirtKeys[] (defined in src/win32/CmdAccelOb.cpp), 
changing its values from { 1, "LBUTTON" } to { 77, "K" }. By changing how the 
compilation units is structured, or making the array in question const, this 
bug disappears from observation. This bug is not observed on a Debug build.

It is unknown whether this is related to the GB Disassemble Dialog crashing bug 
that was mysteriously fixed upon r354 by re-ordering the definitions of some 
member variables of class GBDisassemble in src/win32/GBDisassemble.h. The 
culprit is still unidentified.

Original issue reported on code.google.com by aquan...@gmail.com on 28 Nov 2011 at 10:10

GoogleCodeExporter commented 9 years ago
This appears to have been fixed at some point, i can not reproduce it on 23.6

Original comment by danialho...@gmail.com on 14 May 2013 at 2:40