Wed, 18 Jun 1902 08:00:00 GMT
Program crash on TTable.FindKey
QuoteKamran Behbahani wrote: > Dear all, > For some time I have had problems when I execute a TTable.FindKey > method. In some cases it gives me an access violation error or simply > crashes the program. Today I realized the problem seems to happen when the > record pointer is already located on the very record that the FindKey method > is to search for. > Is this a bug? Is this a corrupted index file? Is there a solution other > than using the locate method which may be slower?
No, no, Kamran .. trust me, if it's an "access violation error" then it's a bug in your program somewhere (and you're lucky that the pointer is turning out to be bad so that you -get- an "access violation"). It's not a bug in findKey. I'm not sure what it -is- but ... don't waste time pursuing it as a bug in Delphi or FindKey. :-/ All I can do about the immediate problem you're facing is, "programmer to programmer, been-there-done-that-although-we're-half-a-world-away" ... is sympathize. ;-) You're not the first human being who hammered his head against the wall on such a problem. :-}
|