On Tue, 2010-06-08 at 14:25 +0100, Jack Challen wrote: > Hi Julien > > I certainly don't mind doing a bit of digging around to change folder > navigation; I think I might have been a little > naïve with my approach to the code before; it appears MAPI is a great deal > more complicated than I first thought! > > bt information extended (somewhat edited to elide my typos ;-) ) > > ==== > (gdb) r > Starting program: > /root/openchange-0.9-COCHRANE.edited/doc/examples/fetchappointment > --profile=johnbull
My bad,
I didn't pay attention to this. fetchappointment is really a very very
basic tool designed to highlight "how easy it is to program with
OpenChange libmapi API". It is really not designed to be robust, cover
all cases. We also skipped deliberately many sanity checks for
readability purposes. Finally and this is the most important,
appointments are relying on many named properties which fetchappointment
doesn't fetch or include in the getprops process.
You should try instead to run: openchangeclient
--fetch-items=Appointment
Let me know if it changes things.
Cheers,
Julien.
> [Thread debugging using libthread_db enabled]
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x00629534 in find_SPropValue_data (aRow=0x3f2f50, mapitag=1732771860) at
> libmapi/property.c:235
> 235 if (aRow->lpProps[i].ulPropTag == mapitag) {
> (gdb) bt
> #0 0x00629534 in find_SPropValue_data (aRow=0x3f2f50, mapitag=1732771860) at
> libmapi/property.c:235
> #1 0x08048ed8 in main (argc=2, argv=0xbffff604) at fetchappointment.c:74
> (gdb) print *aRow
> $1 = {ulAdrEntryPad = 1767995136, cValues = 6580596, lpProps = 0x5f4f495f}
> (gdb) print i
> $2 = 0
> (gdb) print aRow->lpProps[i]
> Cannot access memory at address 0x5f4f495f
> (gdb) print aRow->lpProps
> $3 = (struct SPropValue *) 0x5f4f495f
> ====
Julien Kerihuel
[email protected]
OpenChange Project Manager
GPG Fingerprint: 0B55 783D A781 6329 108A B609 7EF6 FE11 A35F 1F79
signature.asc
Description: This is a digitally signed message part
_______________________________________________ devel mailing list [email protected] http://mailman.openchange.org/listinfo/devel
