<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>snoopopo</author_name>
  <author_url>https://blog.hatena.ne.jp/snoopopo/</author_url>
  <blog_title>ゲーム作るためのこと学ぶdevろぐ(’ー’)/ﾁｬﾗﾝ</blog_title>
  <blog_url>https://www.snoopopo.com/</blog_url>
  <categories>
    <anon>エラー集/困った時</anon>
    <anon>C++</anon>
    <anon>cocos2dx</anon>
  </categories>
  <description>リファレンスカウンタ周りのエラー。 基本的にcocos2d-xのクラスはRefクラスを継承していて、リファレンスカウンタの仕組みを使用している。 Node#createでインスタンスを生成する((newはスコープで制限されてるので呼べない))とRef#autorelease状態のインスタンスを取得できるが クラスのメンバ変数は、自分でreleaseさせたいので、自分でリファレンスカウンタを意識する必要がある。 これがちゃんとなっていない所為で上記のエラーメッセージが出てたのでメモ。 とはいえ、カウンタを操作するRef#retainやRef#releaseは、自分で呼びたくないので、マクロを使い…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.snoopopo.com%2Fentry%2F2016%2F07%2F21%2F012644&quot; title=&quot;reference count should be greater than 0 - ゲーム作るためのこと学ぶdevろぐ(’ー’)/ﾁｬﾗﾝ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-07-21 01:26:44</published>
  <title>reference count should be greater than 0</title>
  <type>rich</type>
  <url>https://www.snoopopo.com/entry/2016/07/21/012644</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
