[BUG?] AV after Alt+Tab pressed on text editor window

Allineer's profile image Allineer posted 12 years ago in HeidiSQL portable Permalink
1. dblclick on 'TEXT' cell in the 'Data' page - you should see the "Text editor" window.
2. press Alt+Tab for open any other window.
3. press Alt+Tab for return to Heidi.
4. I see "Text editor" window with completition window opened. why?
5. when I pressed Esc, I see AV.




date/time         : 2013-03-14, 23:05:10, 16ms
computer name     : TIRANA
user name         : Администратор <admin>
registered owner  : Максим
operating system  : Windows 7 x64 Service Pack 1 build 7601
system language   : Russian
system up time    : 13 hours 4 minutes
program up time   : 23 minutes 5 seconds
processor         : Intel(R) Core(TM)2 Solo CPU U3500 @ 1.40GHz
physical memory   : 1736/4063 MB (free/total)
free disk space   : (C:) 1,88 GB (Z:) 59,16 GB
display mode      : 1366x768, 32 bit
process id        : $184c
allocated memory  : 46,88 MB
executable        : heidisql.exe
exec. date/time   : 2013-03-14 20:16
version           : 7.0.0.4363
compiled with     : Delphi XE
madExcept version : 3.0m beta 1
callstack crc     : $ad1434d0, $e2f852f9, $e2f852f9
exception number  : 5
exception class   : EInvalidOperation
exception message : Cannot focus a disabled or invisible window.
main thread ($1bc0):
0056f31a heidisql.exe Forms                          TCustomForm.SetActiveControl
0056f423 heidisql.exe Forms                          TCustomForm.FocusControl
004f07b6 heidisql.exe Controls                       TWinControl.SetFocus
005e9f34 heidisql.exe SynEdit               8612  +7 TCustomSynEdit.SetFocus
00643269 heidisql.exe SynCompletionProposal 2913 +16 TSynCompletionProposal.HandleOnCancel
00640913 heidisql.exe SynCompletionProposal 1427 +13 TSynBaseCompletionProposalForm.KeyDown
004ef3ea heidisql.exe Controls                       TWinControl.DoKeyDown
004ef416 heidisql.exe Controls                       TWinControl.WMKeyDown
004e919c heidisql.exe Controls                       TControl.WndProc
004eda60 heidisql.exe Controls                       TWinControl.WndProc
0056d02c heidisql.exe Forms                          TCustomForm.WndProc
004ed100 heidisql.exe Controls                       TWinControl.MainWndProc
004ab958 heidisql.exe Classes                        StdWndProc
75c37885 USER32.dll                                  DispatchMessageW
00575ffb heidisql.exe Forms                          TApplication.ProcessMessage
0057603e heidisql.exe Forms                          TApplication.HandleMessage
0057199d heidisql.exe Forms                          TCustomForm.ShowModal
0074b721 heidisql.exe grideditlinks         1115  +7 TInplaceEditorLink.ButtonClick
0074b56b heidisql.exe grideditlinks         1065  +6 TInplaceEditorLink.BeginEdit
006228a9 heidisql.exe VirtualTrees                   TBaseVirtualTree.DoEdit
0061fb60 heidisql.exe VirtualTrees                   TBaseVirtualTree.WMTimer
004e919c heidisql.exe Controls                       TControl.WndProc
004eda60 heidisql.exe Controls                       TWinControl.WndProc
0062b554 heidisql.exe VirtualTrees                   TBaseVirtualTree.WndProc
004ed100 heidisql.exe Controls                       TWinControl.MainWndProc
004ab958 heidisql.exe Classes                        StdWndProc
75c37885 USER32.dll                                  DispatchMessageW
00575ffb heidisql.exe Forms                          TApplication.ProcessMessage
0057603e heidisql.exe Forms                          TApplication.HandleMessage
00576369 heidisql.exe Forms                          TApplication.Run
00817bf0 heidisql.exe heidisql                75 +23 initialization
771a33a8 kernel32.dll                                BaseThreadInitThunk
ansgar's profile image ansgar posted 12 years ago Permalink
This is issue #2640. I could go and silence this exception quite easily, but I would prefer a fix which also prevents the completion proposal from popping up. That thing is really hard to fix. I tracked down the exception callstack, but that does not reveal *why* it pops up, just from which line of code, but the reason is not really clear. Must be some internal Windows message cascading from some activation event into the SynEdit code.
Allineer's profile image Allineer posted 12 years ago Permalink
anse, you fix it in r4370? (0_o)
ansgar's profile image ansgar posted 12 years ago Permalink
Fixed that some days ago, see issue #2640.
Allineer's profile image Allineer posted 12 years ago Permalink
Yaaaaaaaah! Thanks!

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