You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First is that the String is stored in a temporary buffer in the constructor. This temporary buffer is then passed to the char* constructor which stores the address for later reference. Once the function exits the buffer no longer exists and the memory address is invalid. You can try this by assigning _apiKey directly in the String constructor.
Second is that the constructor call is not delegated, so this line creates a new YoutubeApi object and then immediately throws it away instead of modifying the current object.
I'll push a tentative working fix to the branch, but we should discuss some of the alternatives in the PR.
dmadison
added a commit
to dmadison/arduino-youtube-api
that referenced
this issue
Oct 2, 2020
As mentioned in #34, need to investigate
The text was updated successfully, but these errors were encountered: