* Is there a criteria on what can be used as a key for .PAG files
@ 2001-01-03 8:31 Jeff Lu
2001-01-03 8:59 ` Charles Wilson
0 siblings, 1 reply; 2+ messages in thread
From: Jeff Lu @ 2001-01-03 8:31 UTC (permalink / raw)
To: cygwin
Hi,
I'm having problem reading the file after updating it with new info. It
seems to be related to the keys I use. I get "gdbm fatal: read error"
I'm using -lgdbm to compile
dbm_open, dbm_store, dbm_fetch etc.
For instance, when used DEPT1, DEPT2, DEPT3 etc. for keys for some records.
The file is updated successfully. I looked in the file all the data are
there. But I get gdbm fatal: read error when tried to read it.
However, when changed the keys to DP1, DP2, DP3 etc. everything is fine.
Thanks
-Jeff
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Is there a criteria on what can be used as a key for .PAG files
2001-01-03 8:31 Is there a criteria on what can be used as a key for .PAG files Jeff Lu
@ 2001-01-03 8:59 ` Charles Wilson
0 siblings, 0 replies; 2+ messages in thread
From: Charles Wilson @ 2001-01-03 8:59 UTC (permalink / raw)
To: Jeff Lu; +Cc: cygwin
Just to cover the simple stuff first:
It seems that you are not using gdbm in its native mode. "dbm_open" etc
are the ndbm-compatibility routines. nbdm compatibility is broken on
FAT drives (and on Win9x/Me because they can only use FAT). See
/usr/doc/Cygwin/cvs-1.11.0.README for more information (yes, I really do
mean the cvs package documentation).
However, if you are on NTFS, then:
make sure that you refer to database foo as "foo", not "foo.pag" or
"foo.dir". The ndbm compatibility routine "dbm_open()" automatically
adds the appropriate ".pag" / ".dir" ending.
If these simple items do not explain / fix your failures, then you've
probably found a bug of some sort. You'll have to use gdb and figure
out what's happening.
--Chuck
Jeff Lu wrote:
>
> Hi,
>
> I'm having problem reading the file after updating it with new info. It
> seems to be related to the keys I use. I get "gdbm fatal: read error"
>
> I'm using -lgdbm to compile
> dbm_open, dbm_store, dbm_fetch etc.
>
> For instance, when used DEPT1, DEPT2, DEPT3 etc. for keys for some records.
> The file is updated successfully. I looked in the file all the data are
> there. But I get gdbm fatal: read error when tried to read it.
>
> However, when changed the keys to DP1, DP2, DP3 etc. everything is fine.
>
> Thanks
> -Jeff
>
> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-01-03 8:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-03 8:31 Is there a criteria on what can be used as a key for .PAG files Jeff Lu
2001-01-03 8:59 ` Charles Wilson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).