[Valentina] Fwd: [VSDK Macho] InvPage (372) error

Ruslan Zasukhin sunshine at public.kherson.ua
Sun Jan 19 19:45:11 CST 2003


on 1/19/03 6:05 PM, Totte Alm at totte at code66.se wrote:

> Hello Ruslan and others,
> 
> One of the database I have gives the error InvPage (372) when trying to
> search on a certain key in a certain field. Other keyvalues works,
> other field works. I've even tried to rebuild index using VAPP, but
> still gives the same problems.
> 
> The offending code is:
> 
> // Build search
> try {
> Set = mDB->mHolder->category.Find(&mCatID);
> } catch(xFBL_Exception e) {
> char error[1024], errmess[256];
> Str255 errStr;
> 
> e.LoadErrorString(errStr);
> p2cstrcpy( errmess, errStr);
> printf( "Error: %ld - '%s'", e.GetErrorCode(), errmess);
> SysBeep(1);
> return;
> }

You write such big exc handler in each function ?  :-)
Why not to make special function?


> and it works for all other values except for mCatID= 23. Hundred of
> other databases do work, I have NEVER seen this before.
> This is a big database, about 60MB 80.000 shareholders. Should I tell
> the customer just to rerun the reader in this one?

What type of mCatID field ?
Is it unique ?

TIP: if it is unique or if it has e.g few records with the same value in
average, then you can be faster if will use FindAsArray()


-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://listserv.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list