iCloud Calendar example not working


Is the demo from iCloud Calendar working?
I tested here with the latest version + Delphi 10.1 (Berlin) and getting an error.
After the login, I do see all the calendar events, but when I'm testing to add one using the + button. I', getting an exception. Looking at the code, at cdi.post; i'm getting and exception with message 'Invalid Username or password'

I cannot see an issue here.
You can use our compiled demo app & source for this demo that you can download from:


Hi Bruno,
My apologies. Now I found the problem. I tried adding an event in a REMINDER Calendar. If you try this, you will see that it will show the error.

After running the demo and added one event, I had en memory leak. Running the demo program (source version + Delphi Berlin with update 2), after adding and closing the application I got an Unexpected Memory Leak.
An unpexpected memory leak has occurred. The unexpected small block leaks are:

29-36 bytes: TWDStringStream x 2

The sizes of unexpected leaked medium are large blocks are: 8236, 8236

But later I executed again and added few other events and had no more problems.