Hi Henk,
Thanks a lot for your timely help. I'm working on the same lines.

Thanks
Srini



From: Henk Jonas <[EMAIL PROTECTED]>
Reply-To: "Palm Developer Forum" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Subject: Strange addressbook example in SDK 4.0 (Was: Accessing the Address Book data)
Date: Tue, 17 Dec 2002 10:06:21 +0100

Hm, I just had a look into the example source and found a strange behaviour or maybe I'm just blind...

in file AddressDB.c starting from line 1695

PrvAddrPackedDBRecord* d=0;
Int16 len;
void * srcP;
UInt8 companyFieldOffset;

flags.allBits = 0;

DmWrite(recordP, (Int32)&d->options, &s->options, sizeof(s->options));
offset = (Int32)&d->firstField;

d is a pointer to PrvAddrPackedDBRecord and is set to NULL. But as you can see, some lines later the content of d is accessed. But d is NULL, where shall d->firstField or d->options point to? Very interesting...

Srini:

Have a look into function PrvAddrDBUnpack starting at line 1759. As you can see the Address entries are just stored one after one and at the beginning, there is a number of flags which indicates, which string is present.

Henk





_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail


--
For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to