Sign in to follow this  

Software vertex processing - application crashes

This topic is 4823 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

If I create the device using D3DCREATE_SOFTWARE_VERTEXPROCESSING and then I try to render something with my engine, Windows goes nuts: it displays the blue screen of death (in WinXP!), says that a terrible error happened and the like, dumps memory to the hard drive and then resets. Everything is fine with hardware VP instead. I'm just too scared to go and debug this, so could you give me an hint on what could be causing this behavior?

Share this post


Link to post
Share on other sites
Is it just your system or does it do the same on others too? Why don't you post a compiled version... I'm sure there are some here who are brave enough to test it out [lol].

I would guess it would be something with your drivers, but if it does the same thing on everyone's system, then you've probably got a bigger problem!

Share this post


Link to post
Share on other sites
Actually I'm pretty sure it's my app's fault, because other applications run fine with software vp.
I hadn't used software vp in my engine for months, but now I decided to test it and my pc nearly exploded :P (it worked a lot of time ago, by the way)
There must be something I'm forgetting to do.. But I have no idea what it is.. but I'm not going to touch it until I know what it is.. i really got scared lol, after the crash windows wasn't even acting properly, i had to reset again because explorer was eating cpu doing nothing and wasn't stopping.

Namethatnobodyelsetook: thanks for the suggestion, I'm going to check if I'm passing the right stuff to the function.

Share this post


Link to post
Share on other sites
pfft... I'm used to system crashes. In fact, I live for them [lol]

So if you want, I'll try it out on my system. PM me and I'll give you an email address to send it to, if you're interested! Just glad to help out a little! [smile]

Share this post


Link to post
Share on other sites
cool, i solved it, this saved your pc mushu :D

it was DrawIndexedPrimitive(). the NumVertices parameter was wrong: i was passing the _number_ of vertices used by the index buffer, while it is used to set the "range" of the vertices used by the IB - i had to set it to the _total_ vertex number.

Thanks for your help :)

Share this post


Link to post
Share on other sites

This topic is 4823 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.

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