Solved

TIBCustomDataSet error

Posted on 2004-04-28
6
258 Views
Last Modified: 2010-04-05
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
0
Comment
Question by:cc042297
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 10937125
maybe this error disappears,
if you disable the range-checking
in the compiler-setting

(guessing you didn't changed this unit)

meikl ;-)
0
 

Author Comment

by:cc042297
ID: 10937236
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 …  :)
0
 
LVL 12

Assisted Solution

by:Ivanov_G
Ivanov_G earned 75 total points
ID: 10937264

   try
      // YOUR code here
   except
     on E: ERangeError do
        begin
           ShowMessage(E.Message);
        end;
   end;

   ERangeError is the exception class for integer values that are too large for the declared type to which they are assigned.

   And also as kretzschmar said ... Project / Options / Compiler / Runtime errors , untick Range Checking checkbox...
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 27

Accepted Solution

by:
kretzschmar earned 175 total points
ID: 10937410
>I speak German only a very little …  :)

he wrote that it was solved by deleting the project-sources
and creating the project new

meikl ;-)
0
 

Author Comment

by:cc042297
ID: 10937441
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

0
 

Author Comment

by:cc042297
ID: 11100613
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
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question