[16.2.7] Code insight causes Access violation

Invoking code insight (ctrl-T) sometimes causes an Access violation.

Call stack
EurekaLog 7.10.1.0 update 1 8D15780CC9CEB34C98151D73D556A099 6133AB996A0BA34EB6F316C2D9F27FE8 DA39A3EE5E6B4B0D3255BFEF95601890AFD80709 08B6AA058CFA7849B3C2DF4B7229B960

Application:
-------------------------------------------------------------
  1.1 Start Date      : Mon, 25 Jul 2022 08:50:14 +0200
  1.2 Name/Description: Toad.exe - (Toad® for Oracle)
  1.3 Version Number  : 16.2.7.1608
  1.4 Parameters      : 
  1.5 Compilation Date: Mon, 4 Jul 2022 08:45:02 +0200
  1.6 Up Time         : 22 hour(s), 28 minute(s), 9 second(s)

Exception:
--------------------------------------------------------------------------------------------------------------------------
  2.1 Date          : Tue, 26 Jul 2022 07:18:24 +0200
  2.2 Address       : 0000000005A55A67
  2.3 Module Name   : Toad.exe - (Toad® for Oracle)
  2.4 Module Version: 16.2.7.1608
  2.5 Type          : EAccessViolation
  2.6 Message       : Access violation at address 0000000005A55A67 in module 'Toad.exe'. Read of address 0000000000000000.
  2.7 ID            : 8E2E72F5
  2.8 Count         : 1
  2.11 Sent         : 0

User:
---------------------
  3.2 Name: Dirk Mika

Active Controls:
---------------------------------------------------------------------------------------------------------------------------
  4.1 Form Class   : TfrmMain
  4.2 Form Text    : SP_DEV_1_19@ORADEV1 - Toad for Oracle (x64)  BETA Expires on 01-August-2022 - [Editor (PARTICIPANT *)]
  4.3 Control Class: TtdDScintilla
  4.4 Control Text : 

Computer:
---------------------------------------------------------------------------------------------------
  5.2 Total Memory    : 6418677760 (5,98 Gb)
  5.3 Free Memory     : 3421716480 (3,19 Gb)
  5.4 Total Disk      : 63315980288 (58,97 Gb)
  5.5 Free Disk       : 5167943680 (4,81 Gb)
  5.6 System Up Time  : 1 day(s), 36 minute(s), 19 second(s) / 1 day(s), 35 minute(s), 31 second(s)
  5.7 Processor       : Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
  5.8 Display Mode    : 1440 x 900, 32 bit
  5.9 Display DPI     : 96
  5.10 Video Card     : Parallels Display Adapter (WDDM) (driver 17.1.4.51567 - RAM 2147483648)
  5.11 Printer        : Parallels Shared Printer (driver 10.0.19041.1806)
  5.12 Virtual Machine: Hypervisor Parallels Hv

Operating System:
---------------------------------------------------------
  6.1 Type                : Microsoft Windows 10 (64 bit)
  6.2 Build #             : 2009 (10.0.19044.1826)
  6.4 Non-Unicode Language: German (0407)
  6.5 Charset/ACP         : 0/1252
  6.6 Install Language    : German (0407)
  6.7 UI Language         : German (0407)

Steps to reproduce:
------------
  8.1 Text: 


Call Stack Information:
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|Methods |Details|Stack           |Address         |Module      |Offset          |Source                      |Unit               |Class               |Procedure/Method                |Line                            |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|*Exception Thread: ID=8560; Parent=0; Priority=0                                                                                                                                                                        |
|Class=; Name=MAIN                                                                                                                                                                                                       |
|DeadLock=0; Wait Chain=                                                                                                                                                                                                 |
|Comment=                                                                                                                                                                                                                |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|7FFFFFFE|04     |0000000000000000|0000000005A55A67|Toad.exe    |00000000018C5A67|DScintillaPropertiesCode.inc|DScintilla         |TDScintilla         |GetCurrentPos                   |13[11]                          |
|7FFFFFFE|04     |0000000000000000|0000000005A55A67|Toad.exe    |00000000018C5A67|DScintilla.pas              |DScintilla         |TDScintilla         |GetCurrentPos                   |436[0]                          |
|00000040|04     |00000000007FF648|00000000096B8B91|Toad.exe    |0000000005528B91|tdCodeTemplatePopup.pas     |tdCodeTemplatePopup|TtdCodeTemplatePopup|FilterTree                      |217[1]                          |
|00000040|04     |00000000007FF748|00000000096B9474|Toad.exe    |0000000005529474|tdCodeTemplatePopup.pas     |tdCodeTemplatePopup|TtdCodeTemplatePopup|PopulateTree                    |443[12]                         |
|00000040|04     |00000000007FF7B8|00000000096B8A0C|Toad.exe    |0000000005528A0C|tdCodeTemplatePopup.pas     |tdCodeTemplatePopup|TtdCodeTemplatePopup|DoExecute                       |185[1]                          |
|00000040|04     |00000000007FF828|0000000005A5E34D|Toad.exe    |00000000018CE34D|tdPopupControl.pas          |tdPopupControl     |TtdPopupControl     |Execute                         |822[6]                          |
|00000040|04     |00000000007FF868|000000000A41A92B|Toad.exe    |000000000628A92B|frmSyntaxEditor.pas         |frmSyntaxEditor    |TSyntaxEditorForm   |InsertCodeTemplate              |6567[2]                         |
|00000040|04     |00000000007FF8A8|000000000A41A88F|Toad.exe    |000000000628A88F|frmSyntaxEditor.pas         |frmSyntaxEditor    |TSyntaxEditorForm   |MemoExecuteCustomCommand        |6540[2]                         |
|00000040|04     |00000000007FF8D8|000000000A6C7E93|Toad.exe    |0000000006537E93|tdDScintilla.pas            |tdDScintilla       |TtdDScintilla       |DoExecuteCustomCommand          |15599[2]                        |
|00000040|04     |00000000007FF918|000000000A6C2444|Toad.exe    |0000000006532444|tdDScintilla.pas            |tdDScintilla       |TtdDScintilla       |ExecuteCustomCommand            |13094[16]                       |
|00000040|04     |00000000007FF988|000000000A6C58AD|Toad.exe    |00000000065358AD|tdDScintilla.pas            |tdDScintilla       |TtdDScintilla       |WndProc                         |14511[50]                       |
|00000040|03     |00000000007FFAC8|000000000454F24A|Toad.exe    |00000000003BF24A|Vcl.Controls.pas            |Vcl.Controls       |TWinControl         |MainWndProc                     |                                |
|00000040|03     |00000000007FFB18|000000000435F644|Toad.exe    |00000000001CF644|System.Classes.pas          |System.Classes     |                    |StdWndProc                      |                                |
|00000040|03     |00000000007FFB68|00007FFB8FF8E852|user32.dll  |000000000000E852|user32.dll                  |user32             |                    | (possible CallWindowProcW+1010)|                                |
|00000040|03     |00000000007FFCF8|00007FFB8FF8E294|user32.dll  |000000000000E294|user32.dll                  |user32             |                    | (possible DispatchMessageW+596)|                                |
|00000040|03     |00000000007FFD78|00000000046FF4EE|Toad.exe    |000000000056F4EE|Vcl.Forms.pas               |Vcl.Forms          |TApplication        |ProcessMessage                  |                                |
|00000040|03     |00000000007FFDF8|00000000046FF563|Toad.exe    |000000000056F563|Vcl.Forms.pas               |Vcl.Forms          |TApplication        |HandleMessage                   |                                |
|00000040|03     |00000000007FFE68|00000000046FF9BA|Toad.exe    |000000000056F9BA|Vcl.Forms.pas               |Vcl.Forms          |TApplication        |Run                             |                                |
|00000040|04     |00000000007FFEA8|000000000AA0B5CC|Toad.exe    |000000000687B5CC|Toad.dpr                    |Toad               |                    |initialization                  |2030[154]                       |
|7FFF7FFE|03     |00000000007FFF28|00007FFB8EDC702E|kernel32.dll|000000000001702E|KERNEL32.DLL                |KERNEL32           |                    |BaseThreadInitThunk             |                                |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I previously unplugged the external monitor and this moved the Parallels VM window to the MacBook Pro's internal display.
This has both a different resolution and pixel density. Possibly this is a problem.

BR
Dirk

Hi Dirk,

I was actually looking this same error yesterday. I don't have a Mac so I can't run parallels, but I do have VMWare on Windows, so here's what I tried:

  • Launch Toad on a VM with 1920x1080 resolution
  • Open Editor and do a CTRL+Space to launch Code Templates, then esc to close it. Same with CTRL+T for Code Insight.
  • Drag the VM to a display with higher resolution and 200% scaling
  • Do CTRL+Space, and CTRL+T again
  • No errors

Do these steps work consistently for you? If not, did I miss anything?

Unfortunately, I cannot currently reproduce the problem.
Switching the window from the external to the internal screen is not a problem at the moment.