Hello everybody
I'm using .NET Client liblary, and using AuthSub Signing Requests.
sometimes, I see ArgumentOutOfRangeException.
I tried debug, and I think that I discovered the cause.
----- AuthSubUtil.generateULONGRnd() -----
StringBuilder x = new StringBuilder(20);
for (int i = 0; i < 20; i++)
{
if (randomNumber[i] == 0 && x.Length == 0)
{
continue;
}
x.Insert(i, Convert.ToInt16(randomNumber[i],
CultureInfo.InvariantCulture).ToString()[0]);
^^^^^^^^^
}
---- end -----
x.Insert(1,'a') will be throw exception when x.length is 0.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---