Skip to content
This repository was archived by the owner on Mar 30, 2019. It is now read-only.
This repository was archived by the owner on Mar 30, 2019. It is now read-only.

Error in 4.2 version that not was in 4.0.1 version #1136

@RachamimYaakobov

Description

@RachamimYaakobov

I run CustomFont sample, and I use NuGet to install SharpDx, if I install 4.0.1 version all good, but if I install 4.2 version I get the following error:

Unexpected error. Reason : System.ObjectDisposedException: Cannot access a disposed object.

שם אובייקט: 'Cannot add a reference to a nonreferenced item'.

ב- SharpDX.CallbackBase.AddReference()

ב- SharpDX.ComObjectShadow.AddRefImpl()

ב- SharpDX.ComObjectShadow.ComObjectVtbl.AddRefImpl(IntPtr thisObject)

ב- SharpDX.Direct2D1.RenderTarget.DrawTextLayout(RawVector2 origin, TextLayout textLayout, Brush defaultFillBrush, DrawTextOptions options)

ב- SharpDX.Direct2D1.RenderTarget.DrawTextLayout(RawVector2 origin, TextLayout textLayout, Brush defaultForegroundBrush)

ב- FontsFromFolder.CustomFont.renderControl_Paint(Object sender, PaintEventArgs e) ב- K:\SharpDX-master\Samples\SharpDX-Samples-master\Desktop\DirectWrite\CustomFont\CustomFont.cs:שורה 159

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions