Hi Dennis.

I know CALayer is an iOS class, but the one used in your declarations are
the mono classes because you are inside mono, I'm not sure if monotouch can
convert classes between their native ones and the mono implementations i
didn't played with imports on monotouch.

Now, first of all, did you changed both CALayer definitions, the one in the
delegate and the one in the function? and the error is exactly the same?

If you did and the error is same, then here's another idea (a long shot):
the exception thrown is because the runtime expects an structure with the
layout type sequential or explicit, which is not CALayer because it's a
class. So, as you don't use the layer to draw you can create an structure
with a byte array (to hold data sent by the api), make it's layout
sequential and use it on the calls. It's dirty and you must do a bit of
trial and error test to get the correct size of the byte array (you don't
know how much memory will be used by the api, start with something big and
reduce it slowly till it crashes :D) but maybe it can avoid that error.

Cheers.

2012/11/2 Dennis Welu <[email protected]>

> Thanks for the idea, Agustin. I'm thinking CALayer is part of the quartz
> core
> animation framework, but tried the idea...same result unfortunately.
>
> Thanks much,
>
> Dennis
>
>
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/Disable-mapkit-basemap-tp4657590p4657592.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch
>
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to