"Incompatible type 'intptr (Native Int)' on stack cannot be stored to local 0 with type 'byte*' " using native plugin

I am trying to use native code through the commercial version of alglib. It works fine in the editor but I can not get it to work in the WebPlayer, i keep getting the error “Incompatible type ‘intptr (Native Int)’ on stack cannot be stored to local 0 with type ‘byte*’” and I have no idea what that means. Does anybody have experienced something similar?

You can’t use native code in the webplayer. There is absolutely no way. Native code is a security risk for the enduser. In the webplayer you can only use pure managed code. From the documentation it looks like there are two implementations for .NET. So if you want to use this library in a webplayer project you have to use the pure managed implementation.