Replies interlaced
Julien Kerihuel wrote:
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.
ah, Ok. I believe I've been starting from the wrong point in that case.
You should try instead to run: openchangeclient --fetch-items=Appointment
Let me know if it changes things.
Yes! Just slightly :-) It works, and gets information for my Test account correctly. My normal user account works at
least partially (it gets many appointments), then it also SIGSEGVs.
I'll try to locate where etc, but it appears I've got some more delving into
code to do.
cheers
jack
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] <mailto:[email protected]>
OpenChange Project Manager
GPG Fingerprint: 0B55 783D A781 6329 108A B609 7EF6 FE11 A35F 1F79
--
Jack Challen
Technical Consultant, OCSL.
http://www.ocsl.co.uk/
_______________________________________________
devel mailing list
[email protected]
http://mailman.openchange.org/listinfo/devel