TMyEmbConnection cause AV at design time

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
applespring
Posts: 22
Joined: Tue 15 May 2012 14:01

TMyEmbConnection cause AV at design time

Post by applespring » Mon 28 May 2012 06:31

Hello

Delphi XE2 Update 4+ MyDAC 7.1.6

With following steps, TMyEmbConnection will cause an AV at design-time:

1. Start Delphi XE2
2. New a VCL project.
3. Drop an TMyEmbConnection component to the Form
4. Select this TMyEmbConnection componennt.
5. In the Object Inspector, select "Params" for editing.
6. Delphi reports AV as "Access voilation at address xxxx in module rtl160.bpl. Read of Address 0000000F"
7. The call-stack generated by Delphi is:

//////////////////////////////////////////////////////////////////////////
[500A6594]{rtl160.bpl } System.Classes.TStrings.GetValue (Line 5580, "System.Classes.pas" + 1) + $5
[0CAD8D5A]{dclmydac160.bpl} Myconnectioneditor.TMyConnectionEditorForm.ParamsToControls + $2A
[0CAD7A54]{dclmydac160.bpl} Myconnectioneditor.TMyConnectionEditorForm.DoInit + $84
[0C87919E]{dcldac160.bpl} Creditor.TCREditorForm.FormShow + $1C2
[504495FD]{vcl160.bpl } Vcl.Forms.TCustomForm.DoShow (Line 3963, "Vcl.Forms.pas" + 1) + $14
[5044DC35]{vcl160.bpl } Vcl.Forms.TCustomForm.CMShowingChanged (Line 6581, "Vcl.Forms.pas" + 11) + $7
[5003CA63]{rtl160.bpl } System.TObject.Dispatch (Line 13727, "System.pas" + 11) + $0
[50332995]{vcl160.bpl } Vcl.Controls.TControl.WndProc (Line 7204, "Vcl.Controls.pas" + 91) + $6
[500B6890]{rtl160.bpl } System.Classes.StdWndProc (Line 13878, "System.Classes.pas" + 8) + $0
[080D8B43]{Castalia16.bpl} Castaliaeditor.GetSourceFromModule + $373
[0808549C]{Castalia16.bpl} Castaliahookutils. + $0
[503372F3]{vcl160.bpl } Vcl.Controls.TWinControl.WndProc (Line 9976, "Vcl.Controls.pas" + 152) + $6
[5044A021]{vcl160.bpl } Vcl.Forms.TCustomForm.WndProc (Line 4344, "Vcl.Forms.pas" + 201) + $5
[503325D0]{vcl160.bpl } Vcl.Controls.TControl.Perform (Line 6982, "Vcl.Controls.pas" + 10) + $8
[503366F1]{vcl160.bpl } Vcl.Controls.TWinControl.UpdateShowing (Line 9612, "Vcl.Controls.pas" + 19) + $C
[50336800]{vcl160.bpl } Vcl.Controls.TWinControl.UpdateControlState (Line 9647, "Vcl.Controls.pas" + 21) + $3
[503394DE]{vcl160.bpl } Vcl.Controls.TWinControl.CMVisibleChanged (Line 11413, "Vcl.Controls.pas" + 3) + $2
[50332995]{vcl160.bpl } Vcl.Controls.TControl.WndProc (Line 7204, "Vcl.Controls.pas" + 91) + $6
[503372F3]{vcl160.bpl } Vcl.Controls.TWinControl.WndProc (Line 9976, "Vcl.Controls.pas" + 152) + $6
[5044A021]{vcl160.bpl } Vcl.Forms.TCustomForm.WndProc (Line 4344, "Vcl.Forms.pas" + 201) + $5
[504500A3]{vcl160.bpl } Vcl.Forms.TScreen.GetMonitor (Line 7985, "Vcl.Forms.pas" + 1) + $5
[503325D0]{vcl160.bpl } Vcl.Controls.TControl.Perform (Line 6982, "Vcl.Controls.pas" + 10) + $8
[50330F96]{vcl160.bpl } Vcl.Controls.TControl.SetVisible (Line 6011, "Vcl.Controls.pas" + 5) + $C
[5044989E]{vcl160.bpl } Vcl.Forms.TCustomForm.SetVisible (Line 4069, "Vcl.Forms.pas" + 8) + $4
[5044E7EB]{vcl160.bpl } Vcl.Forms.TCustomForm.Show (Line 6961, "Vcl.Forms.pas" + 1) + $4
[5044EA3B]{vcl160.bpl } Vcl.Forms.TCustomForm.ShowModal (Line 7030, "Vcl.Forms.pas" + 28) + $3
[0C85A6C6]{dcldac160.bpl} Daconnectioneditor.TDAConnectionEditorForm.SetComponent + $E
[0C879FAC]{dcldac160.bpl} Crdesign.TCRComponentEditor.ShowEditorEx + $8C
[0C86DF8A]{dcldac160.bpl} Dadesign.TDAPropertyEditor.Edit + $62
[20878DB6]{coreide160.bpl} PropInsp.TPropertyInspector.PropListEditDblClick (Line 871, "PropInsp.pas" + 18) + $12
[2111DA0D]{vclide160.bpl} IDEInspListBox.TInspListBox.DoEditDblClick (Line 620, "IDEInspListBox.pas" + 2) + $A
[2111F7E7]{vclide160.bpl} IDEInspListBox.TInspListBox.ListButtonClick (Line 1311, "IDEInspListBox.pas" + 2) + $2
[50332EEB]{vcl160.bpl } Vcl.Controls.TControl.Click (Line 7320, "Vcl.Controls.pas" + 9) + $8
[21115222]{vclide160.bpl} IDEListBtns.TListButton.WMLButtonUp (Line 584, "IDEListBtns.pas" + 8) + $11
[50332995]{vcl160.bpl } Vcl.Controls.TControl.WndProc (Line 7204, "Vcl.Controls.pas" + 91) + $6
[27D201B9]{cxLibraryD16.bpl} Dxhooks. + $0
[27D1FFE9]{cxLibraryD16.bpl} Dxhooks. + $0
[50336B3B]{vcl160.bpl } Vcl.Controls.TWinControl.IsControlMouseMsg (Line 9745, "Vcl.Controls.pas" + 1) + $9
[503372F3]{vcl160.bpl } Vcl.Controls.TWinControl.WndProc (Line 9976, "Vcl.Controls.pas" + 152) + $6
[080D8AB8]{Castalia16.bpl} Castaliaeditor.GetSourceFromModule + $2E8
[50336948]{vcl160.bpl } Vcl.Controls.TWinControl.MainWndProc (Line 9689, "Vcl.Controls.pas" + 3) + $6
[500B6890]{rtl160.bpl } System.Classes.StdWndProc (Line 13878, "System.Classes.pas" + 8) + $0
[50454598]{vcl160.bpl } Vcl.Forms.TApplication.CancelHint (Line 10993, "Vcl.Forms.pas" + 6) + $7
[50453213]{vcl160.bpl } Vcl.Forms.TApplication.ProcessMessage (Line 10164, "Vcl.Forms.pas" + 23) + $1
[50453256]{vcl160.bpl } Vcl.Forms.TApplication.HandleMessage (Line 10194, "Vcl.Forms.pas" + 1) + $4
[50453595]{vcl160.bpl } Vcl.Forms.TApplication.Run (Line 10332, "Vcl.Forms.pas" + 26) + $3
//////////////////////////////////////////////////////////////////


Please kindly review it.

AndreyZ

Re: TMyEmbConnection cause AV at design time

Post by AndreyZ » Mon 28 May 2012 08:44

Hello,

I cannot reproduce the problem. Please specify the full Delphi XE2 version you are using, for example, Delphi XE2 Architect 16.0.4429.46931 Update 4.

applespring
Posts: 22
Joined: Tue 15 May 2012 14:01

Re: TMyEmbConnection cause AV at design time

Post by applespring » Tue 29 May 2012 17:18

Hello

To avoid any file corruption, I reinstalled RAD XE2, now I am in Embarcadero® RAD Studio XE2 Version 16.0.4504.48759, update 4+hotfix 1.

then I install MyDAC 7.1.6 again.

Now the problem changes that

At starting up XE2, I got error: "Package c:\program files\embarcadero\rad studio\9.0\bin\dacfmx160.bpl must be recomiled before it can be installed. Do you want to attempt to load this package the next time a project is loaded?"

this mentioned dacfmx160.bpl was created on 2012-3-30 11:32.

Can my windows XP 32 bit SP3 be the problem for this error?

What next step I should do?

AndreyZ

Re: TMyEmbConnection cause AV at design time

Post by AndreyZ » Wed 30 May 2012 07:31

For the time being MyDAC doesn't support Hotfix 1. We will add Hotfix 1 compatibility to the next MyDAC version. To solve the problem at present, you should use Delphi XE2 Update 4 without Hotfix 1. Also, we can propose you to upgrade your MyDAC edition to edition with source code, it will allow you to avoid all issues with compatibility.

applespring
Posts: 22
Joined: Tue 15 May 2012 14:01

Re: TMyEmbConnection cause AV at design time

Post by applespring » Thu 31 May 2012 13:01

Hello

I am the source code user for both MyDAC and ODAC.

Following your suggestion, I have the source code recompiled by the make.bat for both components, since there are both win32 and win64 versions, should I only copy the win32 version of dac160.bpl etc to the RAD studio BIN folder?

AndreyZ

Re: TMyEmbConnection cause AV at design time

Post by AndreyZ » Fri 01 Jun 2012 09:56

Yes, if you have the source code, you should only copy *.bpl files from DAC_Dir\Bin\Delphi16\Win32 to RAD Studio XE2 bin directory (or to any other folder that is included in the PATH environment variable).

Post Reply