Sign in to follow this  
proanim

help with debugger

Recommended Posts

proanim    455
I made few changes to my program and now it doesn't work in any way, i don't have a backup so there is no way to undo changes. I am getting bunch of errors in debugger like vertex and index buffer returning .pSysMem = 0xcdcdcdcd, witch were working five minutes ago. At this point i have a class with these private members

D3D11_SUBRESOURCE_DATA vertexData, indexData, iinitData, vertexBufferData;

each of them returns pSysMem = 0xcdcdcdcd

how can i fix this ?

EDIT: i found that this can be fixed to some degre with adding other variable to the constructor? I also get 'display driver has stopped working and has recovered' when my program starts, this renders the program useless.

Can this type of driver crash cause a malfunction on the graphics adapter? Edited by proanim

Share this post


Link to post
Share on other sites
Adam_42    3629
0xcdcdcdcd is the standard value indicating uninitialized heap memory when the debugger is attached.

I'm guessing you're not initializing those values in your constructor, or anywhere else.

Share this post


Link to post
Share on other sites
proanim    455
Thanks.

And about this

[quote]I also get 'display driver has stopped working and has recovered' when my program starts, this renders the program useless.
Can this type of driver crash cause a malfunction on the graphics adapter?[/quote]

Can someone answer this just so i can be sure?

Share this post


Link to post
Share on other sites
Nik02    4348
In theory, unstable driver state can cause physical malfunction of the device (think overheating, for example), but in practice most hardware has safeguard circuitry to prevent this.

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