In the editor, when the tab key is pressed, I want a "hard" tab the equivalent of 4 spaces. In the settings, when the tab size is set to 4 and the indent to 0 and a tab is subsequently entered, an error is reported as shown below. Although I do the majority of my editing in a much more robust editor (pspad or crimson), this is a considerable annoyance, since, after testing a query, it is necessary to reformat it after placing it in the external editor. I may try to go back to the previous version, which didn't seem to have this issue.
EXCEPTION_INT_DIVIDE_BY_ZERO
Program: SQLTools_pp 1.21 RC3 (for trouble-shooting)
Location: ..\OpenEditor\OEView_1.cpp(412).
Platform: MS Windows XP Professional, Service Pack 3 (Build 2600)
COMCTL32.DLL: 6.0.2900.5512
OCI.DLL: 9.2.0.1.0
Connected to: 9.2.0.4.0
Stack at the throw point:
0x43f18c SQLTools 0x3f18c
0x463212 SQLTools 0x63212
0x4e132f SQLTools 0xe132f
0x4dcffd SQLTools 0xdcffd
0x462947 SQLTools 0x62947
0x4df781 SQLTools 0xdf781
0x4df80e SQLTools 0xdf80e
0x7e418734 USER32 GetDC() + 0x6d
0x7e418816 USER32 GetDC() + 0x14f
0x7e4189cd USER32 GetWindowLongW() + 0x127
0x7e4196c7 USER32 DispatchMessageA() + 0xf
Stack at the catch point:
0x7c90e514 ntdll KiFastSystemCallRet() + 0
Hi,
I have difficulties to understand your intention of setting the "Indent" to 0. It is interesting to see that SQLTools actually allows this setting since it doesn't make sense to me: The "Indent" setting defines how many chars you want the editor to indent when you press the TAB key. Setting it to 0 means: No indentation at all when pressing the TAB key, so what should this setting be good for?
Note that the "TAB size" defines how many chars a "hard" TAB character represents I think.
I can't remember having performed any changes in that area - and testing this with the original, unmodified SQLTools (not plusplus) V1.42RC3 version I get the very same error when using "Indent = 0".
So I would be interested to know:
1. What is exactly the reason why you want to use this Indent = 0 setting?
2. Why is your bug subject "...0 hoses settings.dat file"? How does the "settings.dat" file come into the picture here?
3. Which version of SQLTools have you tested that doesn't fail with that setting?
May be you have used one of the later releases (SQLTools V1.5 beta) from Aleksey - he has done some significant changes to some code areas, may be those versions don't raise this exception anymore, although I'm still puzzled what this setting should be good for.
Randolf