namespace FooEditEngine
{
- sealed class InlineChar : DW.InlineObject
+ sealed class InlineChar : CallbackBase, DW.InlineObject
{
DW.TextLayout Layout;
ColorBrushCollection brushes;
set;
}
- public void Dispose()
- {
- this.Layout.Dispose();
- return;
- }
+ //disposeしてはいけないらしい
+ //protected override void Dispose(bool disposing)
+ //{
+ // base.Dispose(disposing);
+ // this.Layout.Dispose();
+ //}
+
}
- sealed class InlineTab : DW.InlineObject
+ sealed class InlineTab : CallbackBase,DW.InlineObject
{
double _TabWidth;
double LineHeight;
set;
}
- public void Dispose()
- {
- }
}
}
public void Clear()
{
+ /*
+ * Dispose()すると落ちる
foreach (List<J> list in this.Collection.Values)
foreach (J value in list)
value.Dispose();
+ */
this.Collection.Clear();
}
{
this.Brushes.Clear();
this.Strokes.Clear();
- if (this.textRender != null)
- this.textRender.Dispose();
+ //ここでDispose()する必要はない。すると落ちる
+ //if (this.textRender != null)
+ // this.textRender.Dispose();
if (this.D2DDevice != null)
this.D2DDevice.Dispose();
if (this.D2DContext != null)
<AssemblyName>FooEditEngine.UWP</AssemblyName>
<DefaultLanguage>ja-JP</DefaultLanguage>
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
- <TargetPlatformVersion Condition=" '$(TargetPlatformVersion)' == '' ">10.0.16299.0</TargetPlatformVersion>
- <TargetPlatformMinVersion>10.0.14393.0</TargetPlatformMinVersion>
+ <TargetPlatformVersion Condition=" '$(TargetPlatformVersion)' == '' ">10.0.17763.0</TargetPlatformVersion>
+ <TargetPlatformMinVersion>10.0.16299.0</TargetPlatformMinVersion>
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
- <Version>5.4.2</Version>
+ <Version>6.2.8</Version>
</PackageReference>
<PackageReference Include="Nito.AsyncEx">
<Version>5.0.0</Version>
</PackageReference>
<PackageReference Include="SharpDX">
- <Version>4.0.1</Version>
+ <Version>4.2.0</Version>
</PackageReference>
<PackageReference Include="SharpDX.Direct2D1">
- <Version>4.0.1</Version>
+ <Version>4.2.0</Version>
</PackageReference>
<PackageReference Include="SharpDX.Direct3D11">
- <Version>4.0.1</Version>
+ <Version>4.2.0</Version>
</PackageReference>
<PackageReference Include="SharpDX.DXGI">
- <Version>4.0.1</Version>
+ <Version>4.2.0</Version>
</PackageReference>
<PackageReference Include="SharpDX.Mathematics">
- <Version>4.0.1</Version>
+ <Version>4.2.0</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
<AssemblyName>Test</AssemblyName>
<DefaultLanguage>ja-JP</DefaultLanguage>
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
- <TargetPlatformVersion Condition=" '$(TargetPlatformVersion)' == '' ">10.0.16299.0</TargetPlatformVersion>
- <TargetPlatformMinVersion>10.0.14393.0</TargetPlatformMinVersion>
+ <TargetPlatformVersion Condition=" '$(TargetPlatformVersion)' == '' ">10.0.17763.0</TargetPlatformVersion>
+ <TargetPlatformMinVersion>10.0.16299.0</TargetPlatformMinVersion>
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
- <Version>5.4.2</Version>
+ <Version>6.2.8</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
this.cachedBitMap.Dispose();
this.Brushes.Clear();
this.Strokes.Clear();
- if (this.textRender != null)
- this.textRender.Dispose();
+ //ここでDispose()すると落ちる
+ //if (this.textRender != null)
+ // this.textRender.Dispose();
if (this.texture != null)
this.texture.Dispose();
if (this.surface != null)
<Version>5.0.0</Version>
</PackageReference>
<PackageReference Include="SharpDX.Direct2D1">
- <Version>4.0.1</Version>
+ <Version>4.2.0</Version>
</PackageReference>
<PackageReference Include="SharpDX.Direct3D11">
- <Version>4.0.1</Version>
+ <Version>4.2.0</Version>
</PackageReference>
<PackageReference Include="SharpDX.Direct3D9">
- <Version>4.0.1</Version>
+ <Version>4.2.0</Version>
</PackageReference>
<PackageReference Include="SharpDX.Mathematics">
- <Version>4.0.1</Version>
+ <Version>4.2.0</Version>
</PackageReference>
</ItemGroup>
<Import Project="..\..\Core\Core.projitems" Label="Shared" />