I sometimes get an AccessViolationException thrown from inside a call to Brep.CreatePlanarBreps(IEnumerable) in a RhinoCommon plugin I am developing. I am trying to find a simple, reproducible test case, but it is difficult, because it happens in a fairly dense part of the plugin, and it does not happen 100% of the time (which is the way of AccessViolationExceptions, I guess). This is happening with SR9. Is there anything obvious that might be causing this?
edit: In many cases, the exception never propagates out of the call, and I only know it ever happened because I have a debugger attached. (I still expect that this is not correct behavior.) However, sometimes Rhino is brought down with an unhandled exception that seems to be somehow related to this.