Sort of. Debugging in the IDE will find some range check errors - it's a question of begin compiled with range checking turned on, and code coverage.
Also note that when you change the IDE compiler options, Delphi does not recompile the whole project - you have to do a build all to get all your units re-compiled with the latest compiler options. This also inpart depends upon what source libraries you have in your compile path, of if you have ticked the use debug DCU's (as these have range checking turned on - I think). The basic rule for a production build, is to set your compiler options, then do a build all - even better is to create a command line compiler file, so in essence do a make for production/distribution purposes. Myles. -----Original Message----- From: Mark Howard [mailto:[EMAIL PROTECTED]] Sent: Thursday, 12 December 2002 10:19 a.m. To: Multiple recipients of list delphi Subject: RE: [DUG]: Range check error Thanks David and Myles So: * Debugging, in the IDE, doesn't find these range check errors. * It seems the programme ALWAYS runs fine, on any computer when it is compiled with Range Checking turned OFF. * It seems that if the programme is compiled with Range Checking turned ON, programme runs fine on SOME computers but fails on other computers. If this is correct, then whether or not the Range Checking rules are violated depends on what computer the programme is running on. Does this stack up? If it does, and we assume that we want to track down the violation, we need the co-operation of a client site with a computer that reveals the violation (given that none of the computers that I have access to reveal the violation at run time). We get them to run a copy of the programme that writes a progress log out to a text file for us to evaluate. Have I got this right? Mark On 12 Dec 2002 at 9:14, David Brennan wrote: > Mark, > > I think it probably is enough to draw conclusions from. We > traditionally developed with Range Checking Off and when we turned it > on we found several places where range check errors occured. These > range check errors didn't affect the program executation and didn't > cause exceptions (otherwise testing would have found them) but they > were legitimate problems which we have since fixed. > > I would guess that you are encountering the same thing. If you haven't > fully debugged your program with range checking turned on then there > are probably some subtle range checking bugs. > > As a short term solution (and assuming the range check errors don't > actually matter) then you could just turn range checking off, > recompile and send the software out again. > > David. > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]On Behalf Of Mark Howard Sent: > > Wednesday, 11 December 2002 6:08 PM To: Multiple recipients of list > > delphi Subject: Re: [DUG]: Range check error > > > > > > Yes. First thing I did. > > > > I have just noticed that the compiler options on the two projects > > (user versions of the same app) were set at Range Checking - ON > > > > Several projects that I have sent out recently that have not > > reported this error had Range Checking - OFF. > > > > This is clearly not enough to draw any conclusions from - but it may > > indicate something?? > > > > Mark > > > > > > On 11 Dec 2002 at 15:29, Jeremy North wrote: > > > > > > > > > > > > > > > > > > > > Have you tried running the application with their data? > > > > > > JED > > > > > > [EMAIL PROTECTED] wrote on 11/12/2002 12:51:56 PM: > > > > > > > Hi > > > > > > > > Sent a new compile of my app (D5Pro - DBISAM) to a user last > > > > week and it wouldn't run (Range Check Error - when starting up) > > > > so they went back to their previous version, compiled 6 weeks > > > > earlier. > > > > > > > > This latest compile runs on my Win2000 pro and my NT4. > > > > > > > > I thought it might be something to do with the fact that they > > > > are running > > > > > > > XP Pro. so I tried it on an associate's computer running XP Pro > > > > (same build). No problem. Have also tried compiling the app on > > > > that machine - same result. > > > > > > > > I have just sent a new compile to another site and they report > > > > the same problem, but this site is running Win 95. > > > > > > > > Anyone had this problem and can give me some pointers (before I > > > > go back through my version archive to identify precisely when it > > > > started)? > > > > > > > > TIA > > > > > > > > Mark > > > > > > > ------------------------------------------------------------------ > > > ---- ----- > New Zealand Delphi Users group - Delphi List - > > > [EMAIL PROTECTED] > Website: > > > http://www.delphi.org.nz > To UnSub, send email to: > > > [EMAIL PROTECTED] > with body of "unsubscribe delphi" > Web > > > Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ > > > > > > > > > > > > This email and any files transmitted with it are confidential and > > > intended solely for the use of the individual or entity to whom > > > they are addressed. If you have received this email in error > > > please notify the [EMAIL PROTECTED] > > > > > > ------------------------------------------------------------------ > > > ---- ----- > > > New Zealand Delphi Users group - Delphi List - > > > [EMAIL PROTECTED] > > > Website: http://www.delphi.org.nz > > > To UnSub, send email to: [EMAIL PROTECTED] > > > with body of "unsubscribe delphi" > > > Web Archive at: > > > http://www.mail-archive.com/delphi%40delphi.org.nz/ > > > > > > > > > ------------------------------------------------------------------ > > --------- > > New Zealand Delphi Users group - Delphi List - > > [EMAIL PROTECTED] > > Website: http://www.delphi.org.nz > > To UnSub, send email to: [EMAIL PROTECTED] > > with body of "unsubscribe delphi" > > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ > > ---------------------------------------------------------------------- > ----- > New Zealand Delphi Users group - Delphi List - > [EMAIL PROTECTED] > Website: http://www.delphi.org.nz > To UnSub, send email to: [EMAIL PROTECTED] > with body of "unsubscribe delphi" > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ > --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/