[Mono-dev] SIGSEGV in Cairo.CairoAPI:cairo_get/set_matrix()

Larry Ewing lewing at novell.com
Mon Oct 31 21:39:48 EST 2005


On Mon, 2005-10-31 at 18:54 -0700, Peter Dennis Bartok wrote:
> >Regarding use of ref/out/neither: I think use of ref or out is
> >*required*. It seems that (most) cairo calls involving matrices expect a
> >cairo_matrix_t* argument. As I understand it, this means that these
> That is correct, cairo expects a pointer (aka reference), not the actual 
> value, therefore ref (or [in, out]) is required. If you drop the ref you 
> will be passing by value (ie putting the whole struct on the stack, instead 
> of just the pointer)
> 
> Any particular reason you dropped the Matrix_T and made the whole object a 
> struct?
> 

It was at my suggestion, it seemed pointless and unnatural to have a
required proxy for something that is clearly value type.  What is the
value in proxying it?

--Larry




More information about the Mono-devel-list mailing list