• Advertisement
Sign in to follow this  

VertexBuffer problem

This topic is 3671 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement