<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>USAGI-WRP</author_name>
  <author_url>https://blog.hatena.ne.jp/USAGI-WRP/</author_url>
  <blog_title>C++ ときどき ごはん、わりとてぃーぶれいく☆</blog_title>
  <blog_url>https://usagi.hatenablog.jp/</blog_url>
  <categories>
    <anon>怪談</anon>
    <anon>TArray</anon>
    <anon>AllocatorInstance</anon>
    <anon>nullptr</anon>
    <anon>bug</anon>
    <anon>UE4</anon>
    <anon>C++</anon>
    <anon>UCLASS</anon>
    <anon>UPROPERTY</anon>
    <anon>GC</anon>
  </categories>
  <description>怪異 ↑キャッチーな画像という事ではなくて、実際にこういう事が「うっかり」で起こるので気をつけたい、という怪談です💀 冒頭のスクリーンショットは UE4 の Array.h （ TArray ）の ResizeTo メンバー関数が呼ばれた際に AllocatorInstance メンバーが nullptr のために実行時にアクセス違反が起こりアプリが死ぬ瞬間のものです。 ResizeTo は Init などから内部的に呼ばれます。 原因 この現象は TArray をメンバー変数として持つユーザー定義型の UCLASS において、 UPROPERTY を宣言に付与しない事で発生し得る実装となりま…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fusagi.hatenablog.jp%2Fentry%2F2018%2F07%2F05%2F180000&quot; title=&quot;UE4/C++: TArray 夏の怪談💀 AllocatorInstance が nullptr の巻 - C++ ときどき ごはん、わりとてぃーぶれいく☆&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>https://cdn-ak.f.st-hatena.com/images/fotolife/U/USAGI-WRP/20180705/20180705150332.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-07-05 18:00:00</published>
  <title>UE4/C++: TArray 夏の怪談💀 AllocatorInstance が nullptr の巻</title>
  <type>rich</type>
  <url>https://usagi.hatenablog.jp/entry/2018/07/05/180000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
