Sign in to follow this  
Kubo

VertexBuffer problem

Recommended Posts

Hi guys, i am trying to construct VertexBuffer object this way: VertexBuffer vb = new VertexBuffer(typeof(CustomVertex.PositionColored), 3, this.device, Usage.WriteOnly, CustomVertex.PositionColored.Format, Pool.Managed); But it gives me DriverInvallidCallException. I am using Windows Mobile 5.0 for PDA and .NET CompactFramework 2.0. Does anyone know where is the problem??? I have also tried this: VertexBuffer vb = new VertexBuffer(this.device, 3 * CustomVertex.PositionColored.StrideSize, Usage.WriteOnly, CustomVertex.PositionColored.Format, Pool.Managed); but it gives me the same exception.....

Share this post


Link to post
Share on other sites
Nice - running a search for DriverInvallidCallException yields this thread as the only reply and apparently this exception isn't even known on MSDN! [oh]

What is the message, internal error code, stack trace, inner exception - can you list out every single field that the exception specifies? May well be that there is some useful diagnostic information for you.

I'm wondering if its analagous to the native D3DERR_DRIVERINTERNALERROR return code - to which there is little that you can do except work around it. Have you tried other combinations of flags? Can you isolate it down to just this call? (it's not a residual error caused by a mistake elsewhere is it?)

Jack

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this