Export crashes

[expired user #5151]'s profile image [expired user #5151] posted 13 years ago in General Permalink
Hi,

if you export into a sql-file and the filename already exists and is locked (write only), HeidiSQL crashes (continue is possible).

Do you need the bugreport ?

Greets
Plasm
ansgar's profile image ansgar posted 13 years ago Permalink
Yes, please the callstack here.
[expired user #5151]'s profile image [expired user #5151] posted 13 years ago Permalink
date/time : 2010-11-12, 14:47:51, 28ms
computer name : WSJH2
user name : jh <admin>
registered owner : Microsoft / Microsoft
operating system : Windows 7 x64 build 7600
system language : German
system up time : 5 hours 37 minutes
program up time : 4 hours 18 minutes
processors : 2x Intel(R) Core(TM)2 Duo CPU E8500 @ 3.16GHz
physical memory : 2273/3738 MB (free/total)
free disk space : (C:) 235,71 GB
display mode : 1600x1200, 32 bit
process id : $4b4
allocated memory : 72,33 MB
executable : heidisql.exe
exec. date/time : 2010-11-12 10:29
version : 5.1.0.3590
compiled with : Delphi 2010
madExcept version : 3.0k
callstack crc : $2d7ebbc2, $a50d1969, $a50d1969
exception number : 5
exception class : EFCreateError
exception message : Cannot create file "C:\Users\jh\Desktop\wstift.sql". Zugriff verweigert.

main thread ($580):
00491460 heidisql.exe Classes TFileStream.Create
00491380 heidisql.exe Classes TFileStream.Create
00717ddd heidisql.exe tabletools 1038 +26 TfrmTableTools.DoExport
00714e1e heidisql.exe tabletools 450 +5 ProcessNode
007150ac heidisql.exe tabletools 495 +35 TfrmTableTools.Execute
0053b15f heidisql.exe Controls TControl.Click
004d2a5e heidisql.exe StdCtrls TCustomButton.Click
004d34c4 heidisql.exe StdCtrls TCustomButton.CNCommand
0053abf4 heidisql.exe Controls TControl.WndProc
0053f4bc heidisql.exe Controls TWinControl.WndProc
004d2724 heidisql.exe StdCtrls TButtonControl.WndProc
0053a818 heidisql.exe Controls TControl.Perform
0053f60f heidisql.exe Controls DoControlMsg
00540077 heidisql.exe Controls TWinControl.WMCommand
005652b4 heidisql.exe Forms TCustomForm.WMCommand
0053abf4 heidisql.exe Controls TControl.WndProc
0053f4bc heidisql.exe Controls TWinControl.WndProc
005621bc heidisql.exe Forms TCustomForm.WndProc
0053eb5c heidisql.exe Controls TWinControl.MainWndProc
0049a588 heidisql.exe Classes StdWndProc
75dd0ad1 USER32.dll CallWindowProcW
00747a6c heidisql.exe helpers 1423 +1 CallOld
00747bb4 heidisql.exe helpers 1470 +44 SizeGripWndProc
75dccd7c USER32.dll SendMessageW
75dd0ad1 USER32.dll CallWindowProcW
0053f5bc heidisql.exe Controls TWinControl.DefaultHandler
0053b5b0 heidisql.exe Controls TControl.WMLButtonUp
0053abf4 heidisql.exe Controls TControl.WndProc
0053f4bc heidisql.exe Controls TWinControl.WndProc
004d2724 heidisql.exe StdCtrls TButtonControl.WndProc
0053eb5c heidisql.exe Controls TWinControl.MainWndProc
0049a588 heidisql.exe Classes StdWndProc
75dc7df5 USER32.dll DispatchMessageW
0056b2bd heidisql.exe Forms TApplication.ProcessMessage
0056b302 heidisql.exe Forms TApplication.HandleMessage
00566b2d heidisql.exe Forms TCustomForm.ShowModal
006bfe9c heidisql.exe Main 1993 +26 TMainForm.actTableToolsExecute
00499edb heidisql.exe Classes TBasicAction.Execute
00555ecd heidisql.exe ActnList TContainedAction.Execute
00556c88 heidisql.exe ActnList TCustomAction.Execute
00499d9f heidisql.exe Classes TBasicActionLink.Execute
00526d50 heidisql.exe Menus TMenuItem.Click
00528323 heidisql.exe Menus TMenu.DispatchCommand
00529502 heidisql.exe Menus TPopupList.WndProc
0053eb5c heidisql.exe Controls TWinControl.MainWndProc
00529451 heidisql.exe Menus TPopupList.MainWndProc
0049a588 heidisql.exe Classes StdWndProc
75dc7df5 USER32.dll DispatchMessageW
0056b2bd heidisql.exe Forms TApplication.ProcessMessage
0056b302 heidisql.exe Forms TApplication.HandleMessage
0056b62d heidisql.exe Forms TApplication.Run
007a573a heidisql.exe heidisql 66 +15 initialization
77313675 kernel32.dll BaseThreadInitThunk

Code modification/commit from ansgar.becker, 13 years ago, revision 5.1.0.3593
Export output file may be in use by another application. Catch such exceptions and stop the whole export loop. See http://www.heidisql.com/forum.php?t=6850
ansgar's profile image ansgar posted 13 years ago Permalink
Fixed in r3593
[expired user #5151]'s profile image [expired user #5151] posted 13 years ago Permalink
Thanks

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