<br>Hello,<br><br>I can't reproduce this behaviour (though I didn't try very hard).<br>Could you send some specific code which produces bus error on your setup?<br><br>By the way, you make a Storable instance for () yourself:<br>
<br>instance Storable () where<br> alignment _ = 1<br> sizeOf _ = 0<br> poke _ _ = return ()<br> peek _ = return ()<br><br>Balazs<br><br><div class="gmail_quote">On Wed, Mar 11, 2009 at 7:15 PM, Jules Bean <span dir="ltr"><<a href="mailto:jules@jellybean.co.uk">jules@jellybean.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
I've just written some code which uses 'tessellate' from Graphics.Rendering.OpenGL.GLU.Tessellation and whilst it works exactly as expected on simple data sets, it gives a bus error on larger ones (not that large - e.g. 150 points).<br>
<br>
This might be a bug in my OS's glu implementation, but I'm also inclined to suspect a bug in all the peeks and pokes HOpenGL uses to handle the data for the callbacks. I don't actually use the callback data (I've set all the data to (0 :: Int) only because there is no storable instance for ()).<br>
<br>
Does anyone have a success story with this function? Has anyone used it successfully on larger polygons?<br>
<br>
Jules <br>
_______________________________________________<br>
HOpenGL mailing list<br>
<a href="mailto:HOpenGL@haskell.org" target="_blank">HOpenGL@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/hopengl" target="_blank">http://www.haskell.org/mailman/listinfo/hopengl</a><br>
</blockquote></div><br>