SQL editor windows crashes when UniSynEdit is installed

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
crafty
Posts: 15
Joined: Thu 30 Aug 2007 15:34

SQL editor windows crashes when UniSynEdit is installed

Post by crafty » Thu 30 Aug 2007 15:59

Hi,

After installation of UniSynEdit package I'm unable to edit SQL in TMyQuery. When the edit windows opens I get "Out of memory" error. If I install normal SynEdit package the error disappears. This isn't a good solution because I need Unicode in my SynEdit.

The Unicode SynEdit (http://mh-nexus.de/unisynedit.htm) is mention at the original SynEdit website and "will become the main distribution in the future".

When I ignore the error my query contains only "meSQL" text instead of my original query content.

The first few lines of Details in the error window look like this:
+ $56[12703362]{SynEdit_R2006.bpl} Synedittextbuffer.TSynEditStringList.SetCapacity + $56
+ $B1[0965C0D1]{dcldac100.bpl} Creditor.SetMemoText + $B1
+ $53[0966182B]{dcldac100.bpl} Dasqlframe.TDASQLFrame.SetSQLText + $53
+ $2D[09661A8D]{dcldac100.bpl} Dasqlframe.TDASQLFrame.LoadMemo + $2D
+ $31[09661B4D]{dcldac100.bpl} Dasqlframe.TDASQLFrame.DoActivate + $31
+ $6[5205CA19]{vcl100.bpl } Controls.Controls.TWinControl.WndProc (Line 7246, "Controls.pas" + 105) + $6
+ $6[5205C1A4]{vcl100.bpl } Controls.Controls.TWinControl.MainWndProc (Line 7021, "Controls.pas" + 3) + $6
+ $0[51F60BC0]{rtl100.bpl } Classes.Classes.StdWndProc (Line 11572, "classes.pas" + 8) + $0
...


System specification:
MySQL Dac 5.10.0.9 for Delphi 2006
Unicode SynEdit - 13 July 2007 (newest available)
Delphi 2006 (10.0.2558.35231)

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Fri 31 Aug 2007 07:17

Thank you for information.
You can temporarily disable SynEdit. Open the following registry key: HKEY_CURRENT_USER\Software\CoreLab\MyDAC\Editors. Add a new DWORD parameter, and name it UseSynEdit. If the value of this parameter is 0, standard Memo components are not replaced with SynEdit.
We will consider support for UniSynEdit in the nearest time.

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Tue 04 Sep 2007 13:12

We investigated the issue with the UniSynEdit components, and found no ways to support the current version of them. So we decided to disable syntax highlighting with UniSynEdit.
We also asked Maël Hörz from mh-nexus.de to add an interface required for our components. We will support UniSynEdit as soon as required changes are introduced in UniSynEdit.
Last edited by Antaeus on Thu 06 Sep 2007 06:25, edited 1 time in total.

crafty
Posts: 15
Joined: Thu 30 Aug 2007 15:34

Post by crafty » Wed 05 Sep 2007 14:50

Thank you.

Post Reply