Solved

TIBCustomDataSet error

Posted on 2004-04-28
6
252 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
  • 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

919 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now