Discussion:
0xC0000005: Access violation running Idirect3ddevice8::present
(too old to reply)
wpiyong
2007-05-11 17:57:26 UTC
Permalink
I got the warnning message 0xC0000005: Access violation running the
function Idirect3ddevice8::Present in source code RacorX from
"direct3d shaderx vertex and pixel shader tips and tricks". The
situation is that when I ran RacorX on windows XP with newest DirectX
SDK(apirl, 2007) or older version directX SDK9 (may be 2002), there is
no problem. But when I ran it on windows vista with the newest DirectX
sdk, it had the Access violation problem, while I ran it on vista with
the older version directX sdk, there is no such problem. Can somebody
help me to solve this problem? Thank you.
legalize+ (Richard [Microsoft Direct3D MVP])
2007-05-13 04:01:24 UTC
Permalink
[Please do not mail me a copy of your followup]
Post by wpiyong
I got the warnning message 0xC0000005: Access violation running the
function Idirect3ddevice8::Present [...]
Access violations generally represent you passing a bad pointer to the
runtime somewhere. Use a tool like Bounds Checker or Purify (both
have a free trial download, IIRC) to check that your code doesn't have
a memory problem in it that's causing you to pass bad pointers to the
runtime. Even though it runs in other environments, you may be doing
something that doesn't work on Vista and giving you a NULL pointer
that you pass on to another function.
--
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
<http://www.xmission.com/~legalize/book/download/index.html>

Legalize Adulthood! <http://blogs.xmission.com/legalize/>
Loading...