Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7044651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:26:06+00:00 2026-05-28T02:26:06+00:00

I am using the Cairo.Matrix dll in my monoandroid application to load the some

  • 0

I am using the Cairo.Matrix dll in my monoandroid application to load the some System.Drawing.Drawing2D.Matix Class Methods it works fine at build time but at run time the Matrix class from Cairo.Matrix gives an error “System.NullReferenceException: Object reference not set to an instance of an object.”
when I intialize the Cairo.Matrix Class error is “Exception in loading dicom filelibcairo-2.dll.”

This below code I am trying……….

using System; 

using System.Drawing; 

using Medsynaptic.Common;

using Medsynaptic.Imaging1.Mathematics; 

**using Matrix = Cairo.Matrix;**

public class SpatialTransform : ISpatialTransform 

    { 

private Cairo.Matrix _cumulativeTransform; 

        private Cairo.Matrix _transform; 

public PointF ConvertToDestination(PointF sourcePoint) 

        { 

            double x = 0.0, y = 0.0;         

            this.CumulativeTransform.TransformPoint(ref x, ref y);      

            PointF point = new PointF((float)x, (float)y); 

            return point; 
        } 

Here it show Null Ref Exception:Object reference not set to an instance of an object

public Cairo.Matrix CumulativeTransform       
    {        

        get 

        {      

            Calculate(); 

            return _cumulativeTransform; 

        } 

    } 

 protected virtual void Calculate() 

    { 

        if (!this.RecalculationRequired) 

            return; 

ERROR @ if condition:- Object reference not set to an instance of an object

        if (_cumulativeTransform == null) 

            _cumulativeTransform = new Cairo.Matrix(); 


       // _cumulativeTransform.Reset(); 

        _cumulativeTransform.InitIdentity(); 
} 

} 

this is android debugger show an output with error Error In loading libcairo-2.dll

On Create Call

Picture box OnAttachedToWindow.

 display.Height 430

  firstRowHeight 43

  pictureBox.DisplayHeight 301

Displaying image /mnt/sdcard/Images/Series1/1.2.840.113619.2.22.287.1.20040913.195606.dcm

Request garbage collector to initiate.

Presentation Image created.

 Calling invalidate in Render Mode

Renderer will take care of it.

 Calling DrawSceneGraph

Error In loading

libcairo-2.dll

 Picture box on draw called

 Displayed medsynaptic.medsynapse/desktopexecutable.Activity1: +1m10s925ms
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T02:26:07+00:00Added an answer on May 28, 2026 at 2:26 am

    Unfortunately, the inclusion of Mono.Cairo.dll was a mistake; it can’t work, as it depends upon the native libcairo.so, which Android doesn’t provide. Mono.Cairo.dll will be removed in the next release.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Cairo in a GTK# application for drawing. When another window covers
I a drawing a graph using Cairo (pycairo specifically) and I need to know
Using Cairo, I'm placing some text at random positions, and I need to know
I need to undergo some affinetransformation operation using gtk framework. i found cairo but
My application is a vector drawing application. It works with OpenGL. I will be
I'm currently doing some tests using Cairo to replace some existing GDI/GDI+ code in
I'm embedding WebKit in a Windows C++ Application. I'm using the Cairo port. It
Using online interfaces to a version control system is a nice way to have
Using C# .NET 3.5 and WCF, I'm trying to write out some of the
Using C# and System.Data.SqlClient, is there a way to retrieve a list of parameters

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.