Date: Jun 17, 2008 19:53
[Please do not mail me a copy of your followup]
Dime Bar dimebar.f2s.com> spake the secret code
pipex.net> thusly:
>I have a program which calls somefunc() for every picture that I have.
>It waits some amount of time before calling somefunc again. At some
>point it crashes with access violation when it is doing
>D3DXCreateTextureFromFileInMemory.
>
>Any ideas on how to catch this error so it does not crash ? What should
>I be doing so that it does not cause an access violation ? g_textures_ =
>new(LPDIRECT3DTEXTURE9) ?
In addition to what Chuck said, have you:
- linked with the debug D3DX? (d3dx9d.lib)
- validated that all inputs to the function are correct? (data, size)
- checked for relevant messages in the debug output?
|