Page 1 of 1

AV instead of Exception

Posted: Wed 10 Sep 2014 16:22
by ssette
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

Re: AV instead of Exception

Posted: Wed 10 Sep 2014 16:39
by ssette
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 ?

Re: AV instead of Exception

Posted: Thu 11 Sep 2014 11:55
by ssette
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:

Re: AV instead of Exception

Posted: Thu 11 Sep 2014 12:30
by AlexP
hello,

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

Re: AV instead of Exception

Posted: Thu 11 Sep 2014 13:58
by ssette
Tnx a lot ! :D

Re: AV instead of Exception

Posted: Tue 16 Sep 2014 19:03
by JoaoMarcos
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.

Re: AV instead of Exception

Posted: Wed 17 Sep 2014 09:32
by AlexP
The problem may be the same (though, we couldn't reproduce your one). Try to download the new version and check your sample.