C#C
C#2y ago
Tare

Unknown Access Violation Error

Hi, I am getting the error in the picture below, but I am not doing anything that would cause the error to happen. This is the "NativeNewContext" function
[DllImport(Dlls.AeroxWidgetsNative, EntryPoint = "msdfRenderContext",CallingConvention = CallingConvention.Cdecl)]
    private static extern IntPtr NativeNewContext();


And this is the function in c++

struct GlyphContext
{
    msdfgen::Point2 position{};
    msdfgen::Shape * shape;
    msdfgen::Contour * contour;
    GlyphContext();
    ~GlyphContext();
};


EXPORT GlyphContext * msdfNewContext();

GlyphContext * msdfNewContext()
{
    return new GlyphContext();
}
image.png
Was this page helpful?