Problem under Delphi 2007

Discussion forum for PivotCube VCL users. Common questions. Bug and problem reports

Moderator: Alex Zencovich

Problem under Delphi 2007

Postby littlebird » Thu Aug 14, 2008 4:25 pm

In a PVDimToolBar, PVColToolBar or PVRowToolBar, when clicking in the drop down button (down triangle glyph)
to select a filter in any dimension, I'm getting a access violation error.
After closing error window and after closing form, I get a "Control '' has no parent window" error window.
A copy of the same form under Delphi 7 are working ok.
In the D7 code the tables are TABSTable (a non BDE bd) and in D2007 are TMSTable (SDAC components); all
are TDataSet descendants, of course.

Any suggestion ?
littlebird
Guest
 
Posts: 2
Joined: Thu Aug 14, 2008 4:08 pm

Re: Problem under Delphi 2007

Postby AlexZencovich » Fri Aug 15, 2008 5:21 am

I have made several checks for that problem. Unfortunately, I cannot reproduce that problem.

Are you got AV on MS Vista or Windows XP?
Best regards,

Alex Zencovich
-------------------------------------------------------------------------------------------------------------------------------------------
www.pivotcube.com - OLAP solution for Delphi, C++ Builder and ActiveX environment
AlexZencovich
Site Admin
 
Posts: 580
Joined: Sun Jun 18, 2006 10:09 am

Re: Problem under Delphi 2007

Postby littlebird » Sat Aug 16, 2008 8:08 am

Hello Alex

Yes, AVG Antivirus on XP Pro. Disabling has no effect.

I compiled with EurekaLog and it says:
"Access violation at address 0069BBA3 in module 'Costos.exe'. Read of address 00000008."
In the assembler info:
; PVDimDDForm_SRC.TDimDropDownForm.Destroy (Line=0 - Offset=0)
; ------------------------------------------------------------
0069BB8C push ebp
0069BB8D mov ebp, esp
0069BB8F push ecx
0069BB90 push ebx
0069BB91 push esi
0069BB92 push edi
0069BB93 call System._BeforeDestruction
0069BB98 mov [ebp-$01], dl
0069BB9B mov esi, eax
0069BB9D mov eax, [esi+$044A]
0069BBA3 mov ebx, [eax+$08] ; <-- EXCEPTION
0069BBA6 dec ebx
0069BBA7 test ebx, ebx
0069BBA9 jl PVDimDDForm_SRC.TDimDropDownForm.Destroy
0069BBAB inc ebx
0069BBAC xor edi, edi
0069BBAE mov eax, [esi+$044A]
0069BBB4 mov edx, edi
0069BBB6 call Classes.TList.Get
0069BBBB call System.TObject.Free
0069BBC0 inc edi
On close form, 1st:Access violation at address 4DDA649A. Read of address 4DDA649A.
2nd: Access violation at address 0077849E in module 'Costos.exe'. Read of address 02782308.
3rd: EInvalidOperation error and "Control '' has no parent window." message.

The error occurs in the TPVSpeedButton, when trying to create the filter form. Changing ModalDropDown parameter
has no effect. Other internal PivotCube forms like "Calculated measures manager" works fine.
Also I replaced TMSQuery dataset by TADOQuery and no success (both attached a SQL Server database).
I will prepare a source sample to send you by email.

Regards
littlebird
Guest
 
Posts: 2
Joined: Thu Aug 14, 2008 4:08 pm

Re: Problem under Delphi 2007

Postby AlexZencovich » Sat Aug 16, 2008 10:39 am

1. SQL will has no impact for that problem I think as far SQL used only on cube build stage.

2. The class TPVSpeedButton does no used anywhere in PVDimDDForm_SRC (TDimDropDownForm)

I may suggest you try to remove from PVDImDDForm_SRC.pas lines like

OnClose = FormClose
or
OnDestroy = FormDestroy

But if you say error happened on form open, that Eurekalog shows incorrect stack or some modules just incorrectly built (may be you have dcu's and dfm's from different versions?)
Best regards,

Alex Zencovich
-------------------------------------------------------------------------------------------------------------------------------------------
www.pivotcube.com - OLAP solution for Delphi, C++ Builder and ActiveX environment
AlexZencovich
Site Admin
 
Posts: 580
Joined: Sun Jun 18, 2006 10:09 am


Return to PivotCube VCL

Who is online

Users browsing this forum: No registered users and 13 guests

cron