AV instead of Exception

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
ssette
Posts: 9
Joined: Wed 10 Sep 2014 16:07

AV instead of Exception

Post by ssette » Wed 10 Sep 2014 16:22

Delphi XE5, ODAC 9.3.10 trial, OCI 11.2.0.1.0

I'm evaluating your product and I have a strange error. My application is quite simple, a dataset, a grid and a button.
When I try to execute this code :

MySmartDataset.SetOrderBy('WRONG_COLUMN'); // the column is wrong an oracle error should be raised
MySmartDataset.Open;

then an AV in module dac190.bpl is raised (write of address 00000000).
I've tried with the monitor and the wrong statement stay in "Pending" state but no error is showed.
I believe an incorrect statement should raise an Exception instead of an AV.

I'm doing something wrongs ?

Best regards

s7

ssette
Posts: 9
Joined: Wed 10 Sep 2014 16:07

Re: AV instead of Exception

Post by ssette » Wed 10 Sep 2014 16:39

The Call Stack is strange too :

:04838478 Marshal.WriteInt16
:046b71d2 ; C:\Windows\SysWOW64\odac190.bpl
:04714b2a ; C:\Windows\SysWOW64\odac190.bpl
:00791c75 TOCICommand.InternalExecute + $15
:00799c97 TOCIRecordSet.DoExecFetch + $EB
:0079a1e3 TOCIRecordSet.ExecFetch + $107
:006e6de5 TCRRecordSet.InternalOpen + $1B9
:007999a4 TOCIRecordSet.InternalOpen + $2C
:0065b563 TData.Open + $37
:00670937 TMemDataSet.InternalOpen + $2F
:007d38ad TOraDataSet.InternalOpen + $19
:007dc462 TCustomSmartQuery.InternalOpen + $A


My application is a 32 bit application but the bpl seems to be a 64 bit one.
And my application doesn't uses run-time packages, why is the bpl loaded ?

ssette
Posts: 9
Joined: Wed 10 Sep 2014 16:07

Re: AV instead of Exception

Post by ssette » Thu 11 Sep 2014 11:55

Ok, found the problem.
The problem is in the Trial vesion that dinamically loads some runtime packages. This will cause the AV in case of the SmartQuery component executes an incorrect SQL statement.

Plase provide an updated trial ! :twisted:

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: AV instead of Exception

Post by AlexP » Thu 11 Sep 2014 12:30

hello,

Thank you for the information. We have already fixed this problem.

ssette
Posts: 9
Joined: Wed 10 Sep 2014 16:07

Re: AV instead of Exception

Post by ssette » Thu 11 Sep 2014 13:58

Tnx a lot ! :D

JoaoMarcos
Posts: 26
Joined: Fri 28 Jun 2013 20:26

Re: AV instead of Exception

Post by JoaoMarcos » Tue 16 Sep 2014 19:03

Is that AV related to mine? http://forums.devart.com/viewtopic.php?f=5&t=27654
I posted a CallStack there too it seems t be the same thing.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: AV instead of Exception

Post by AlexP » Wed 17 Sep 2014 09:32

The problem may be the same (though, we couldn't reproduce your one). Try to download the new version and check your sample.

Post Reply