Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2016-08

Google Calendar API and unsupported exception

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Lubos Pintes

Hello,
I am again here with questions about Google API. I am currently creating a console application for testing. Because it doesn't work, I tried to compile a fresh FPC trunk in the hope that prpoblem was fixed there. I am trying to obtain a calendar list:

   Res := Calendar.API.CreateCalendarListResource;

! List := Res.List('');

   Calendar.SaveSession;
   if List  nil then for Entry in List.Items do writeln(Entry.description)

And I receive an exception on the marked line:
An unhandled exception occurred at $00451627:
ERESTAPI: TCalendarList: unsupported array element type : ... and after that some nice useless hex numbers.
The "-gl" switch only tells me that I have an exception on line 92 in my project, that is good but insufficient.
Am I doing something wrong, or there is a bug somewhere in the library? Do I have to send whole program somewhere? It is not a problem of course, I just thought that snipped I provided could be sufficient. Thanks!