Link to home
Start Free TrialLog in
Avatar of cc042297
cc042297

asked on

TIBCustomDataSet error

Hi,

I had to rebuild VCL.  When opening a TIBDataset  it  stops at TIBCustomDataSet.FetchCurrentRecordToBuffer with „Range check error”.

I have no idea, what can be wrong …

Any help is welcome. :)

CC
Avatar of kretzschmar
kretzschmar
Flag of Germany image

maybe this error disappears,
if you disable the range-checking
in the compiler-setting

(guessing you didn't changed this unit)

meikl ;-)
Avatar of cc042297
cc042297

ASKER

Hi Meikl,

It generates an ERangeError exception anyway. :(

I searched the web and found only one link, which seems to be dealing with the same problem. But it is in German: http://www.entwicklerforum.de/webx?50@134.dERaaqHAfV3.0@.2cb7d149

I speak German only a very little …  :)
SOLUTION
Avatar of Ivanov_G
Ivanov_G
Flag of Bulgaria image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The error disappeared! :) :)

This is what I did:
Replaced all LIB and SOURCE files from the Install CD.
Changed the dpr date to today.
Rebuilt the project. (Rebuilding didn’t change anything before.)


I always appreciate when somebody spends his/her time helping me, so I am going to share the points anyway.

Thanx for your help!
CC

Hi,

I just wanted to let you know, that the same problem occured again. But this time I have found the real solution, which is almost the same what Meikl suggested. Turing Range checking off at the project options didn't help, but adding a {$R-} to the IBCustomDataSet unit solved the problem.

Last time I simply replaced all source and DCU files  with the original ones, and luckily managed not to recompile it again. But the first time when I did, I faced the same problem.

Regards,
CC