Crash at start

[expired user #5151]'s profile image [expired user #5151] posted 13 years ago in General Permalink
If there´s a stored connection that is currently not available and HeidiSQL tries to restore that connection at startup, the following error message appears:
SQL Error (2003): Can´t connect to MySQL server on 'IP' (10060)

Followed by a crash:
date/time : 2011-02-09, 11:23:10, 331ms
computer name : WSJH2
user name : jh <admin>
registered owner : Microsoft / Microsoft
operating system : Windows 7 x64 build 7600
system language : German
system up time : 2 hours 20 minutes
program up time : 3 minutes 11 seconds
processors : 2x Intel(R) Core(TM)2 Duo CPU E8500 @ 3.16GHz
physical memory : 2152/3738 MB (free/total)
free disk space : (C:) 221,85 GB
display mode : 1600x1200, 32 bit
process id : $e4c
allocated memory : 63,90 MB
executable : heidisql.exe
exec. date/time : 2011-02-09 11:19
version : 6.0.0.3687
compiled with : Delphi XE
madExcept version : 3.0m beta 1
callstack crc : $70d61038, $92ac43c5, $92ac43c5
exception number : 1
exception class : EAccessViolation
exception message : Access violation at address 006DF95A in module 'heidisql.exe'. Read of address 00000062.

main thread ($6e8):
006df95a heidisql.exe mysql_connection 941 +1 TMySQLConnection.Log
006e0ac3 heidisql.exe mysql_connection 1250 +1 TMySQLConnection.GetInformationSchemaObjects
0077fa53 heidisql.exe Main 7858 +8 TMainForm.ListDatabasesBeforePaint
00626083 heidisql.exe VirtualTrees TBaseVirtualTree.DoBeforePaint
006349a5 heidisql.exe VirtualTrees TBaseVirtualTree.PaintTree
004a56ec heidisql.exe Classes StdWndProc
0062cc29 heidisql.exe VirtualTrees TBaseVirtualTree.Paint
004e252b heidisql.exe Controls TCustomControl.PaintWindow
004dcc85 heidisql.exe Controls TWinControl.PaintHandler
004dd464 heidisql.exe Controls TWinControl.WMPaint
004e24c5 heidisql.exe Controls TCustomControl.WMPaint
00623b1d heidisql.exe VirtualTrees TBaseVirtualTree.WMPaint
004d8208 heidisql.exe Controls TControl.WndProc
004d7e2c heidisql.exe Controls TControl.Perform
004d8208 heidisql.exe Controls TControl.WndProc
004dcacc heidisql.exe Controls TWinControl.WndProc
0062f504 heidisql.exe VirtualTrees TBaseVirtualTree.WndProc
004dc16c heidisql.exe Controls TWinControl.MainWndProc
004a56ec heidisql.exe Classes StdWndProc
772800e3 ntdll.dll KiUserCallbackDispatcher
7728010a ntdll.dll KiUserExceptionDispatcher
004d7e2c heidisql.exe Controls TControl.Perform
00626083 heidisql.exe VirtualTrees TBaseVirtualTree.DoBeforePaint
006349a5 heidisql.exe VirtualTrees TBaseVirtualTree.PaintTree
0062cc29 heidisql.exe VirtualTrees TBaseVirtualTree.Paint
004e252b heidisql.exe Controls TCustomControl.PaintWindow
004dcc85 heidisql.exe Controls TWinControl.PaintHandler
004dd464 heidisql.exe Controls TWinControl.WMPaint
004e24c5 heidisql.exe Controls TCustomControl.WMPaint
00623b1d heidisql.exe VirtualTrees TBaseVirtualTree.WMPaint
004d8208 heidisql.exe Controls TControl.WndProc
004d8b2e heidisql.exe Controls TControl.WMMouseMove
004d8208 heidisql.exe Controls TControl.WndProc
004dcacc heidisql.exe Controls TWinControl.WndProc
0062f504 heidisql.exe VirtualTrees TBaseVirtualTree.WndProc
004dc16c heidisql.exe Controls TWinControl.MainWndProc
004a56ec heidisql.exe Classes StdWndProc
772800e3 ntdll.dll KiUserCallbackDispatcher
76393675 kernel32.dll BaseThreadInitThunk


If I press the button "Continue Application", the crash-window reappers.
[expired user #5151]'s profile image [expired user #5151] posted 13 years ago Permalink
HeidiSQL crashes again at startup after updating to newest build (r3780 -> r3791).
If I delete the reg-entries, it started properly. I´ll send you an reg-export per mail.


date/time : 2011-04-21, 11:35:10, 791ms
computer name : WSJH2
user name : jh <admin>
registered owner : Microsoft / Microsoft
operating system : Windows 7 x64 build 7600
system language : German
system up time : 2 hours 34 minutes
program up time : 202 milliseconds
processors : 2x Intel(R) Core(TM)2 Duo CPU E8500 @ 3.16GHz
physical memory : 2036/3738 MB (free/total)
free disk space : (C:) 216,89 GB
display mode : 1600x1200, 32 bit
process id : $fd0
allocated memory : 26,04 MB
executable : heidisql.exe
exec. date/time : 2011-04-21 11:31
version : 6.0.0.3791
compiled with : Delphi XE
madExcept version : 3.0m beta 1
callstack crc : $77c08db9, $19400ed7, $19400ed7
exception number : 1
exception class : EAccessViolation
exception message : Access violation at address 77C08DB9 in module 'ntdll.dll'. Write of address 00000014.

main thread ($1124):
77c08db9 ntdll.dll
77c08cc3 ntdll.dll RtlEnterCriticalSection
007d6a6c heidisql.exe Main 3791 +33 TMainForm.LogSQL
007eab7d heidisql.exe Main 9489 +57 TMainForm.SetupSynEditors
007cd612 heidisql.exe Main 1556 +247 TMainForm.FormCreate
0057cb29 heidisql.exe Forms TCustomForm.DoCreate
0057c6d9 heidisql.exe Forms TCustomForm.Create
00586ec6 heidisql.exe Forms TApplication.CreateForm
007fc868 heidisql.exe heidisql 63 +13 initialization
772d3675 kernel32.dll BaseThreadInitThunk

ansgar's profile image ansgar posted 13 years ago Permalink
No, please no mailsmileNo need for a registry export. This is just a bug in TMainForm.FormCreate, where I have InitializeCriticalSection placed after SetupSynEditors. I just need to move first one up so the FCriticalSection is there when it's accessed.
[expired user #5151]'s profile image [expired user #5151] posted 13 years ago Permalink
Too late :-)
Code modification/commit from ansgar.becker, 13 years ago, revision 6.0.0.3792
Create critical section variable earlier, before the first call to LogSQL(). See http://www.heidisql.com/forum.php?t=7757
ansgar's profile image ansgar posted 13 years ago Permalink
Fixed in r3792

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